@@ -1330,8 +1330,7 @@ entry does not exist, return nil."
1330
1330
t ))
1331
1331
1332
1332
; ; This function bypasses the file name handler approach. It is NOT
1333
- ; ; recommended to use it in any package if not absolutely necessary,
1334
- ; ; because it won't work for remote file names not supported by Tramp.
1333
+ ; ; recommended to use it in any package if not absolutely necessary.
1335
1334
; ; However, it is more performant than `file-local-name' , and might be
1336
1335
; ; useful where performance matters, like in operations over a bulk
1337
1336
; ; list of file names.
@@ -1340,13 +1339,13 @@ entry does not exist, return nil."
1340
1339
This function removes from NAME the specification of the remote
1341
1340
host and the method of accessing the host, leaving only the part
1342
1341
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' ."
1342
+ not match `tramp-file-name-regexp' , just `file-local-name' is
1343
+ called. The returned file name can be used directly as argument
1344
+ of `process-file' , `start-file-process' , or `shell-command' ."
1346
1345
(or (and (tramp-tramp-file-p name)
1347
1346
(string-match (nth 0 tramp-file-name-structure) name)
1348
1347
(match-string (nth 4 tramp-file-name-structure) name))
1349
- name))
1348
+ (tramp-compat-file-local- name name) ))
1350
1349
1351
1350
(defun tramp-find-method (method user host )
1352
1351
" Return the right method string to use depending on USER and HOST.
0 commit comments