Function: eshell-save-some-history
eshell-save-some-history is a byte-compiled function defined in
em-hist.el.gz.
Signature
(eshell-save-some-history)
Documentation
Save the history for any open Eshell buffers.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-hist.el.gz
(defun eshell-save-some-history ()
"Save the history for any open Eshell buffers."
(dolist (buf (buffer-list))
(if (buffer-live-p buf)
(with-current-buffer buf
(if (and eshell-mode
eshell-history-file-name
eshell-save-history-on-exit
(or (eq eshell-save-history-on-exit t)
(y-or-n-p
(format-message
"Save input history for Eshell buffer `%s'? "
(buffer-name buf)))))
(eshell--save-history)))))
t)