]> git.eshelyaron.com Git - emacs.git/commit
Don't save to history from 'eshell-command' when aborting
authorJim Porter <jporterbugs@gmail.com>
Sat, 13 Jul 2024 18:43:42 +0000 (11:43 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 17 Jul 2024 17:40:08 +0000 (19:40 +0200)
commitbfa11f4095341aed44f5e2c866d5e1dfba00c181
tree925d73ba03e58b9622c241f87dca4a198d27184b
parentf5ef2ff50153f8fedf5c566c31845f15b0b4fa1e
Don't save to history from 'eshell-command' when aborting

* lisp/eshell/eshell.el (eshell-add-input-to-history)
(eshell--save-history): Declare.
(eshell-command-mode-exit): New function...
(eshell-command-mode): ... use it.

* lisp/eshell/em-hist.el (eshell-hist-initialize): Don't handle
minibuffer logic here.  Always read history file (this ensures that
'eshell-command' can see the history, too).
(eshell-add-command-to-history): Remove.

(cherry picked from commit 3407e274999ce80582932332b108d84fba69d107)
lisp/eshell/em-hist.el
lisp/eshell/eshell.el