File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1339,14 +1339,14 @@ entry does not exist, return nil."
1339
1339
" Return the local name component of NAME.
1340
1340
This function removes from NAME the specification of the remote
1341
1341
host and the method of accessing the host, leaving only the part
1342
- that identifies NAME locally on the remote system. NAME must be
1343
- a string that matches `tramp-file-name-regexp' . The returned
1344
- file name can be used directly as argument of `process-file' ,
1345
- `start-file-process' , or `shell-command' ."
1346
- (save-match-data
1347
- ( and ( tramp-tramp- file-p name)
1348
- ( string- match (nth 0 tramp-file-name-structure) name)
1349
- ( match-string ( nth 4 tramp-file- name-structure) name)) ))
1342
+ that identifies NAME locally on the remote system. If NAME does
1343
+ not match `tramp-file-name-regexp' , just NAME is returned. The
1344
+ returned file name can be used directly as argument of
1345
+ `process-file' , ` start-file-process' , or `shell-command' ."
1346
+ (or ( and ( tramp-tramp-file-p name)
1347
+ ( string-match ( nth 0 tramp-file-name-structure) name)
1348
+ ( match-string (nth 4 tramp-file-name-structure) name) )
1349
+ name))
1350
1350
1351
1351
(defun tramp-find-method (method user host )
1352
1352
" Return the right method string to use depending on USER and HOST.
You can’t perform that action at this time.
0 commit comments