emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 0f325d1: Don't clobber 'comint-input-autoexpand'


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 0f325d1: Don't clobber 'comint-input-autoexpand' in 'read-shell-command'
Date: Fri, 15 Mar 2019 05:16:23 -0400 (EDT)

branch: emacs-26
commit 0f325d193e3787bf0e69d539783dd1ce414463c3
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Don't clobber 'comint-input-autoexpand' in 'read-shell-command'
    
    * lisp/shell.el (shell-completion-vars): Set only the
    buffer-local value of 'comint-input-autoexpand'.  (Bug#34815)
---
 lisp/shell.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/shell.el b/lisp/shell.el
index e30825c..78227ca 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]