diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2023-09-10 09:53:47 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2023-09-10 09:53:47 +0200 |
commit | af1e860570191014d94484d6944348b1766ba59f (patch) | |
tree | fa49669b72726fe299ce012bae474233695f2bb5 /lisp/shell.el | |
parent | d5610127f93577b6dc80d318bae7798013f81fff (diff) | |
download | emacs-af1e860570191014d94484d6944348b1766ba59f.tar.gz |
Fix file name completion in `shell'
* lisp/shell.el (shell-completion-vars): Fix setting of
`pcomplete-remote-file-ignore'. (Bug#65705)
Diffstat (limited to 'lisp/shell.el')
-rw-r--r-- | lisp/shell.el | 3 |
1 files changed, 2 insertions, 1 deletions
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. |