]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/shell.el (shell-completion-vars):
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 4 Jul 2018 07:04:55 +0000 (09:04 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 4 Jul 2018 07:04:55 +0000 (09:04 +0200)
Set `comint-file-name-prefix' to "" for local default directory.

lisp/shell.el

index c78903b3e5a9d8369adb7f3eecc640355a2a40cb..fa6eee0f187671cc97ba6dd3a48e625d244f918b 100644 (file)
@@ -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)