From: Reiner Steib <reinersteib+gmane@imap.cc>
Cc: hniksic@xemacs.org
Subject: Re: savehist-mode: invalid-read-syntax "#"
Date: Wed, 04 Jan 2006 20:59:11 +0100 [thread overview]
Message-ID: <v9psn7g3xs.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <85psn8xo0r.fsf@lola.goethe.zz> (David Kastrup's message of "Wed, 04 Jan 2006 11:53:24 +0100")
On Wed, Jan 04 2006, David Kastrup wrote:
> Juri Linkov <juri@jurta.org> writes:
>
>>> Alas, from time to time `savehist-mode' saves entries containing "#"
>>
>> Perhaps Emacs should provide a general purpose function (like
>> `desktop-value-to-string') to print Lisp-readable expressions.
>
> You can't make buffers, windows, overlays, yes even markers
> "Lisp-readable".
Mentioning "markers" reminds me of another failure when reading the
history file. I had the following entry in ~/.emacs.d/history (I
didn't C&P in which variable it was) after editing entries in my BBDB:
(bbdb-insert-new-field '["J..." "H..." ("J H...") nil
(["Home" "NNNNN/NNNNN"] ["Office" "NNNNN/NNNNNN"] ["Mobile" "0"])
(["Home" ("...weg N") "...." "" "NNNNN" ""])
("J....H...@invalid.invalid" "j..._h...@invalid.invalid")
((gnokii . "t") (birthday . "NNNN-NN-NN")
(www . "http://www.invalid.invalid/") (category . "...")
(creation-date . "NNNN-NN-NN") (timestamp . "NNNN-NN-NN"))
["J... H..." nil #<marker at 22775 in rs.bbdb> nil]]
'phone '["Mobile" "0"])
> They are just not restorable by the Lisp reader and so one should
> find out what causes them to be in the history in the first place.
AFAICS, it's the following code...
(defun savehist-install ()
"Hook savehist into Emacs.
Normally invoked by calling `savehist-mode' to set the minor mode.
Installs `savehist-autosave' in `kill-emacs-hook' and on a timer. To
undo this, call `savehist-uninstall'."
(add-hook 'minibuffer-setup-hook 'savehist-minibuffer-hook)
[...]
(defun savehist-minibuffer-hook ()
;; XEmacs sets minibuffer-history-variable to t to mean "no history
;; is being recorded".
(unless (eq minibuffer-history-variable t)
(add-to-list 'savehist-minibuffer-history-variables
minibuffer-history-variable)))
Maybe there should be a list (say `savehist-ignores-variables') which
should contain `command-history' (and maybe other variables).
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2006-01-04 19:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-01 18:13 savehist-mode: invalid-read-syntax "#" Reiner Steib
2006-01-04 6:27 ` Juri Linkov
2006-01-04 10:53 ` David Kastrup
2006-01-04 19:59 ` Reiner Steib [this message]
2006-01-08 19:44 ` Reiner Steib
2006-01-08 22:26 ` Hrvoje Niksic
2006-01-08 23:23 ` Reiner Steib
2006-01-08 23:46 ` Hrvoje Niksic
2006-03-03 17:17 ` Reiner Steib
2006-04-03 17:32 ` Reiner Steib
2006-01-05 6:41 ` Juri Linkov
2006-01-05 3:46 ` Richard M. Stallman
2006-01-05 6:38 ` Juri Linkov
2006-01-04 8:08 ` Hrvoje Niksic
2006-01-04 14:46 ` Reiner Steib
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9psn7g3xs.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=hniksic@xemacs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.