From af1e860570191014d94484d6944348b1766ba59f Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 10 Sep 2023 09:53:47 +0200 Subject: [PATCH] Fix file name completion in `shell' * lisp/shell.el (shell-completion-vars): Fix setting of `pcomplete-remote-file-ignore'. (Bug#65705) --- lisp/shell.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/shell.el b/lisp/shell.el index b554ee5add9..084113c673a 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -596,7 +596,8 @@ Shell buffers. It implements `shell-completion-execonly' for ;; shell-dynamic-complete-functions instead. (setq-local pcomplete-default-completion-function #'ignore) ;; Do not expand remote file names. - (setq-local pcomplete-remote-file-ignore t) + (setq-local pcomplete-remote-file-ignore + (not (file-remote-p default-directory))) (setq-local comint-input-autoexpand shell-input-autoexpand) ;; Not needed in shell-mode because it's inherited from comint-mode, but ;; placed here for read-shell-command. -- 2.39.5