QUERY
Hrvoje Niksic <hniksic(a)xemacs.org> writes:
An even newer update of this package is now available:
http://fly.srk.fer.hr/~hniksic/emacs/savehist.el
New features:
* Autodetection of minibuffer history variables. The minibuffer
history vars no longer need to be enumerated, they are discovered
from within minibuffer-setup-hook. Implemented by Stefan Monnier.
* Ability to explicitly install/uninstall the savehist hooks.
* Uses an MD5 checksum to verify whether the file has changed since
last save. This is important because of the autosaving feature.
Unfortunately this release is not backward-compatible with the old
savehist. The differences are:
- what used to be called savehist-history-variables is now split in
two parts: savehist-save-minibuffer-history, a boolean that controls
whether minibuffer histories are saved, and
savehist-additional-variables, a list of *additional* variables to
save.
- because of the new mechanism for autodetection of minibuffer history
variables, the old minibuffer histories will not be recognized as
histories unless used at least once before leaving XEmacs. To avoid
this, you can use something like:
(setq savehist-minibuffer-history-variables
(with-temp-buffer
(insert-file-contents savehist-file)
(let ((vars ()) form)
(while (setq form (condition-case nil (read (current-buffer)) (error
nil)))
(push (nth 1 form) vars))
vars)))
I'm not sure if there is a good way to do this automatically.
Please let me know if/when this is installed in the packages.
Hello Hrvoje, shouldn't these issues be resolved before we release this
code in an updated edit-utils package?
Would you be willing to provide a patch including XEmacs ChangeLog to
expedite the review process?
Best regards,
Adrian
--
Adrian Aichner
mailto:adrianï¼ xemacs.org
http://www.xemacs.org/