mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix last Tramp commit
* lisp/net/tramp.el (tramp-completion-file-name-handler): Run only when `minibuffer-completing-file-name' is non-nil. * test/lisp/net/tramp-tests.el (tramp-test26-file-name-completion): Fix test.
This commit is contained in:
parent
907fd1f7ff
commit
22f0159c5a
2 changed files with 3 additions and 2 deletions
|
|
@ -2773,7 +2773,7 @@ Fall back to normal file name handler if no Tramp file name handler exists."
|
|||
"Invoke Tramp file name completion handler for OPERATION and ARGS.
|
||||
Falls back to normal file name handler if no Tramp file name handler exists."
|
||||
(if-let
|
||||
((fn (and tramp-mode
|
||||
((fn (and tramp-mode minibuffer-completing-file-name
|
||||
(assoc operation tramp-completion-file-name-handler-alist))))
|
||||
(save-match-data (apply (cdr fn) args))
|
||||
(tramp-run-real-handler operation args)))
|
||||
|
|
|
|||
|
|
@ -4524,7 +4524,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
|
|||
(let ((tramp-fuse-remove-hidden-files t)
|
||||
(method (file-remote-p ert-remote-temporary-file-directory 'method))
|
||||
(host (file-remote-p ert-remote-temporary-file-directory 'host))
|
||||
(orig-syntax tramp-syntax))
|
||||
(orig-syntax tramp-syntax)
|
||||
(minibuffer-completing-file-name t))
|
||||
(when (and (stringp host) (string-match tramp-host-with-port-regexp host))
|
||||
(setq host (match-string 1 host)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue