From 3bbd4ffc68bcc2b3e003a2179a508b82055ad770 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Wed, 4 Jul 2018 09:04:55 +0200 Subject: [PATCH] * lisp/shell.el (shell-completion-vars): Set `comint-file-name-prefix' to "" for local default directory. --- lisp/shell.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/shell.el b/lisp/shell.el index c78903b3e5a..fa6eee0f187 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -469,7 +469,7 @@ Shell buffers. It implements `shell-completion-execonly' for (set (make-local-variable 'comint-file-name-quote-list) shell-file-name-quote-list) (set (make-local-variable 'comint-file-name-prefix) - (file-remote-p default-directory)) + (or (file-remote-p default-directory) "")) (set (make-local-variable 'comint-dynamic-complete-functions) shell-dynamic-complete-functions) (setq-local comint-unquote-function #'shell--unquote-argument) -- 2.39.2