From e2295672e81cde202fc81a5bb53b0400f11727c1 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 30 Oct 2007 08:24:30 +0000 Subject: [PATCH] (savehist-save): Obey savehist-ignored-variables. --- lisp/ChangeLog | 4 ++++ lisp/savehist.el | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 56125595bd7..d456bedce15 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2007-10-30 Richard Stallman + + * savehist.el (savehist-save): Obey savehist-ignored-variables. + 2007-10-30 Nick Roberts * progmodes/gdb-ui.el (gdb-delete-out-of-scope): New option. diff --git a/lisp/savehist.el b/lisp/savehist.el index b28bd476933..355762d9f3e 100644 --- a/lisp/savehist.el +++ b/lisp/savehist.el @@ -308,7 +308,8 @@ If AUTO-SAVE is non-nil, compare the saved contents to the one last saved, (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. -- 2.39.2