]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix history problem in `M-x shell' when started twice
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 27 Oct 2020 12:44:16 +0000 (13:44 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 27 Oct 2020 12:44:16 +0000 (13:44 +0100)
* 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

index 944e1ae8c06b974e743d6d6d63e56b26b4256754..2873416c5f4fda5ce1e53bedc5888a74648cb006 100644 (file)
@@ -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)