[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: savehist-mode: invalid-read-syntax "#"
From: |
Reiner Steib |
Subject: |
Re: savehist-mode: invalid-read-syntax "#" |
Date: |
Sun, 08 Jan 2006 20:44:15 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
On Wed, Jan 04 2006, Reiner Steib wrote:
> Maybe there should be a list (say `savehist-ignores-variables') which
> should contain `command-history' (and maybe other variables).
What about the following patch? I will install it in Emacs CVS unless
someone comes up with a better solution.
--8<---------------cut here---------------start------------->8---
--- savehist.el 04 Jan 2006 15:58:31 +0100 1.14
+++ savehist.el 08 Jan 2006 20:23:19 +0100
@@ -56,6 +56,7 @@
(defgroup savehist nil
"Save minibuffer history."
+ :version "22.1"
:group 'minibuffer)
;;;###autoload
@@ -91,6 +92,11 @@
:type '(repeat variable)
:group 'savehist)
+(defcustom savehist-ignored-variables '(command-history)
+ "*List of additional variables not to save."
+ :type '(repeat variable)
+ :group 'savehist)
+
(defcustom savehist-file
(cond
;; Backward compatibility with previous versions of savehist.
@@ -371,9 +377,10 @@
(error nil))))))
(defun savehist-minibuffer-hook ()
- ;; XEmacs sets minibuffer-history-variable to t to mean "no history
- ;; is being recorded".
- (unless (eq minibuffer-history-variable t)
+ (unless (or (eq minibuffer-history-variable t)
+ ;; XEmacs sets minibuffer-history-variable to t to mean "no
+ ;; history is being recorded".
+ (memq minibuffer-history-variable savehist-ignored-variables))
(add-to-list 'savehist-minibuffer-history-variables
minibuffer-history-variable)))
--8<---------------cut here---------------end--------------->8---
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
Re: savehist-mode: invalid-read-syntax "#", Richard M. Stallman, 2006/01/04
Re: savehist-mode: invalid-read-syntax "#", Hrvoje Niksic, 2006/01/04