]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix file name completion in `shell'
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 10 Sep 2023 07:53:47 +0000 (09:53 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 10 Sep 2023 07:53:47 +0000 (09:53 +0200)
* lisp/shell.el (shell-completion-vars): Fix setting of
`pcomplete-remote-file-ignore'.  (Bug#65705)

lisp/shell.el

index b554ee5add95ba4b1b5f2e975dca931f822eb54a..084113c673a1cf89febdec60dd0bedd867282693 100644 (file)
@@ -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.