]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't clobber 'comint-input-autoexpand' in 'read-shell-command'
authorEli Zaretskii <eliz@gnu.org>
Fri, 15 Mar 2019 09:15:06 +0000 (11:15 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 15 Mar 2019 09:15:06 +0000 (11:15 +0200)
* lisp/shell.el (shell-completion-vars): Set only the
buffer-local value of 'comint-input-autoexpand'.  (Bug#34815)

lisp/shell.el

index e30825cd662575bbb093d6fb2ed12d7f63f1820e..78227ca7351225d43562ab04079c2cd0403fb241 100644 (file)
@@ -483,7 +483,7 @@ Shell buffers.  It implements `shell-completion-execonly' for
   ;; Don't use pcomplete's defaulting mechanism, rely on
   ;; shell-dynamic-complete-functions instead.
   (set (make-local-variable 'pcomplete-default-completion-function) #'ignore)
-  (setq comint-input-autoexpand shell-input-autoexpand)
+  (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.
   (add-hook 'completion-at-point-functions 'comint-completion-at-point nil t))