diff options
| author | Michael Albinus | 2023-08-20 09:41:07 +0200 |
|---|---|---|
| committer | Michael Albinus | 2023-08-20 09:41:07 +0200 |
| commit | efb276fef1f580eafa8458fc262a4b35eb3abd5e (patch) | |
| tree | 19e136ceadfb718a8d6ff09b0dee749ce777071d /lisp/shell.el | |
| parent | fd1479a0af1ba896ae194c9fc91ec7dd49416d9b (diff) | |
| download | emacs-efb276fef1f580eafa8458fc262a4b35eb3abd5e.tar.gz emacs-efb276fef1f580eafa8458fc262a4b35eb3abd5e.zip | |
New user option pcomplete-remote-file-ignore
* etc/NEWS: Mention pcomplete-remote-file-ignore.
* lisp/pcomplete.el (pcomplete-remote-file-ignore):
New user option.
(pcomplete--entries): Use it.
* lisp/shell.el (shell-completion-vars):
Set 'pcomplete-remote-file-ignore'.
Diffstat (limited to 'lisp/shell.el')
| -rw-r--r-- | lisp/shell.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index 7ea9d1c2ead..b554ee5add9 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -595,6 +595,8 @@ Shell buffers. It implements `shell-completion-execonly' for | |||
| 595 | ;; Don't use pcomplete's defaulting mechanism, rely on | 595 | ;; Don't use pcomplete's defaulting mechanism, rely on |
| 596 | ;; shell-dynamic-complete-functions instead. | 596 | ;; shell-dynamic-complete-functions instead. |
| 597 | (setq-local pcomplete-default-completion-function #'ignore) | 597 | (setq-local pcomplete-default-completion-function #'ignore) |
| 598 | ;; Do not expand remote file names. | ||
| 599 | (setq-local pcomplete-remote-file-ignore t) | ||
| 598 | (setq-local comint-input-autoexpand shell-input-autoexpand) | 600 | (setq-local comint-input-autoexpand shell-input-autoexpand) |
| 599 | ;; Not needed in shell-mode because it's inherited from comint-mode, but | 601 | ;; Not needed in shell-mode because it's inherited from comint-mode, but |
| 600 | ;; placed here for read-shell-command. | 602 | ;; placed here for read-shell-command. |