changeset 79264:0c1e5fd29009

(savehist-save): Obey savehist-ignored-variables.
author Richard M. Stallman <rms@gnu.org>
date Tue, 30 Oct 2007 08:24:08 +0000
parents e1394a662145
children 963d05ba0484
files lisp/savehist.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/savehist.el	Tue Oct 30 05:54:58 2007 +0000
+++ b/lisp/savehist.el	Tue Oct 30 08:24:08 2007 +0000
@@ -308,7 +308,8 @@
 	       (current-buffer))
 	(insert ?\n)
 	(dolist (symbol savehist-minibuffer-history-variables)
-	  (when (boundp symbol)
+	  (when (and (boundp symbol)
+		     (not (memq symbol savehist-ignored-variables)))
 	    (let ((value (savehist-trim-history (symbol-value symbol)))
 		  excess-space)
 	      (when value		; Don't save empty histories.