diff options
| author | Glenn Morris | 2020-01-08 09:09:47 -0800 |
|---|---|---|
| committer | Glenn Morris | 2020-01-08 09:09:47 -0800 |
| commit | b968b733a2a0450eb7312a5e72c059ec3c59ddd9 (patch) | |
| tree | da0790ada823a4d7dee009e9df63b3b24d0d539b /lisp/net | |
| parent | f8a0b02949342b887822e7756fd36f06536c9c01 (diff) | |
| parent | 6cd9ccb0a28ec03ffe180b7429e0378511b7d459 (diff) | |
| download | emacs-b968b733a2a0450eb7312a5e72c059ec3c59ddd9.tar.gz emacs-b968b733a2a0450eb7312a5e72c059ec3c59ddd9.zip | |
Merge from origin/emacs-27
6cd9ccb0a2 (origin/emacs-27) Fix compression of directories in Dired
42329e6d3b ; * etc/NEWS: Review of the whole text.
af5709f16b Further enhancement on `tramp-file-local-name'
fb432446f5 Objective C Mode imenu: cease recognizing "functions" with...
a18373a999 ; * etc/NEWS: Update the text about the XDG_CONFIG_HOME/em...
73fd8a4b53 Fix BSD and macOS builds w.r.t. pthread_setname_np (bug#38...
f54b24304d Scale top-left coordinates in display-monitor-attributes-list
b46c75b16c xref-matches-in-files: Big Tramp speed-up
883b3490d8 * lisp/net/tramp.el (tramp-file-local-name): Remove `save-...
c01f55f126 Fix rendering bug due to unsynchronized cairo surface size...
075f21c0e3 Avoid crash by access to cleared img->pixmap->data/img->ma...
16c6dfb4f1 Avoid assertion violations in very small-height windows
9063124b91 Use pthread_setname_np to set thread name
# Conflicts:
# etc/NEWS
# lisp/net/tramp.el
Diffstat (limited to 'lisp/net')
| -rw-r--r-- | lisp/net/tramp.el | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 22bac9ce459..a7c9b34d29d 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1330,8 +1330,7 @@ entry does not exist, return nil." | |||
| 1330 | t)) | 1330 | t)) |
| 1331 | 1331 | ||
| 1332 | ;; This function bypasses the file name handler approach. It is NOT | 1332 | ;; This function bypasses the file name handler approach. It is NOT |
| 1333 | ;; recommended to use it in any package if not absolutely necessary, | 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. | ||
| 1335 | ;; However, it is more performant than `file-local-name', and might be | 1334 | ;; However, it is more performant than `file-local-name', and might be |
| 1336 | ;; useful where performance matters, like in operations over a bulk | 1335 | ;; useful where performance matters, like in operations over a bulk |
| 1337 | ;; list of file names. | 1336 | ;; list of file names. |
| @@ -1339,16 +1338,14 @@ entry does not exist, return nil." | |||
| 1339 | "Return the local name component of NAME. | 1338 | "Return the local name component of NAME. |
| 1340 | This function removes from NAME the specification of the remote | 1339 | This function removes from NAME the specification of the remote |
| 1341 | host and the method of accessing the host, leaving only the part | 1340 | host and the method of accessing the host, leaving only the part |
| 1342 | that identifies NAME locally on the remote system. NAME must be | 1341 | that identifies NAME locally on the remote system. If NAME does |
| 1343 | a string that matches `tramp-file-name-regexp'. If NAME does not | 1342 | not match `tramp-file-name-regexp', just `file-local-name' is |
| 1344 | match `tramp-file-name-regexp', just NAME is returned. The | 1343 | called. The returned file name can be used directly as argument |
| 1345 | returned file name can be used directly as argument of | 1344 | of `process-file', `start-file-process', or `shell-command'." |
| 1346 | `process-file', `start-file-process', or `shell-command'." | 1345 | (or (and (tramp-tramp-file-p name) |
| 1347 | (save-match-data | 1346 | (string-match (nth 0 tramp-file-name-structure) name) |
| 1348 | (or (and (tramp-tramp-file-p name) | 1347 | (match-string (nth 4 tramp-file-name-structure) name)) |
| 1349 | (string-match (nth 0 tramp-file-name-structure) name) | 1348 | (tramp-compat-file-local-name name))) |
| 1350 | (match-string (nth 4 tramp-file-name-structure) name)) | ||
| 1351 | name))) | ||
| 1352 | 1349 | ||
| 1353 | ;; The localname can be quoted with "/:". Extract this. | 1350 | ;; The localname can be quoted with "/:". Extract this. |
| 1354 | (defun tramp-unquote-file-local-name (name) | 1351 | (defun tramp-unquote-file-local-name (name) |