From 5ba6df774eef64fc6e2cd962f8502a8d371ed85a Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sat, 25 Jan 2020 19:25:00 +0100 Subject: [PATCH] Fix Bug#39279 * lisp/net/tramp.el (tramp-completion-file-name-handler): Fix thinko. (Bug#39279) --- lisp/net/tramp.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 81c79bf5d7e..61f6f2ed3a7 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -2412,10 +2412,11 @@ Fall back to normal file name handler if no Tramp file name handler exists." (defun tramp-completion-file-name-handler (operation &rest args) "Invoke Tramp file name completion handler for OPERATION and ARGS. Falls back to normal file name handler if no Tramp file name handler exists." - (when tramp-mode - (if-let ((fn (assoc operation tramp-completion-file-name-handler-alist))) - (save-match-data (apply (cdr fn) args)) - (tramp-run-real-handler operation args)))) + (if-let + ((fn (and tramp-mode + (assoc operation tramp-completion-file-name-handler-alist)))) + (save-match-data (apply (cdr fn) args)) + (tramp-run-real-handler operation args))) ;;;###autoload (progn (defun tramp-autoload-file-name-handler (operation &rest args) -- 2.39.2