From: Lars Ingebrigtsen Date: Tue, 27 Oct 2020 12:44:16 +0000 (+0100) Subject: Fix history problem in `M-x shell' when started twice X-Git-Tag: emacs-28.0.90~5392 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=608c821716e20a6ba973219beb1edf14139ea12a;p=emacs.git Fix history problem in `M-x shell' when started twice * lisp/comint.el (comint-input-ring-file-name): Avoid having this variable being killed on mode restart while the other ring variables aren't (bug#39667). This would mean that `M-x shell'/`C-d'/`M-x shell' didn't save commands entered after the second `M-x shell'. --- diff --git a/lisp/comint.el b/lisp/comint.el index 944e1ae8c06..2873416c5f4 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -611,6 +611,7 @@ The command \\[comint-accumulate] sets this.") (put 'comint-replace-by-expanded-history 'menu-enable 'comint-input-autoexpand) (put 'comint-input-ring 'permanent-local t) +(put 'comint-input-ring-file-name 'permanent-local t) (put 'comint-input-ring-index 'permanent-local t) (put 'comint-save-input-ring-index 'permanent-local t) (put 'comint-input-autoexpand 'permanent-local t)