From 608c821716e20a6ba973219beb1edf14139ea12a Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 27 Oct 2020 13:44:16 +0100 Subject: [PATCH] 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'. --- lisp/comint.el | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.2