Commits

Anonymous committed 2a24d50

eshell-mode, non-defined variable 'eshell-save-history-on-exit.

  • Participants
  • Parent commits 02875db

Comments (0)

Files changed (2)

+2009-01-25  It's me FKtPp ;)  <m_pupil@yahoo.com.cn>
+
+	* em-hist.el (eshell-save-history-on-exit): NEW. default to nil
+	* em-hist.el (eshell-hist-initialize): make
+	'eshell-save-history-on-exit buffer-local by default.
+	* em-hist.el (eshell-save-some-history): simplify the evaluation
+	logic.
+
 2008-09-08  Norbert Koch  <viteno@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 1.16 released.
 (defvar eshell-history-index nil)
 (defvar eshell-matching-input-from-input-string "")
 (defvar eshell-save-history-index nil)
+(defvar eshell-save-history-on-exit nil)
 
 (defvar eshell-isearch-map nil)
 
 
   (make-local-variable 'eshell-history-index)
   (make-local-variable 'eshell-save-history-index)
+  (make-local-variable 'eshell-save-history-on-exit)
 
   (if (minibuffer-window-active-p (selected-window))
-      (set (make-local-variable 'eshell-save-history-on-exit) nil)
+      (setq eshell-save-history-on-exit nil)
     (set (make-local-variable 'eshell-history-ring) nil)
     (if eshell-history-file-name
 	(eshell-read-history nil t))
 	(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)
+		   (or eshell-save-history-on-exit
 		       (y-or-n-p
 			(format "Save input history for Eshell buffer `%s'? "
 				(buffer-name buf)))))