emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving minibuffer history


From: Stefan Monnier
Subject: Re: Saving minibuffer history
Date: Tue, 25 Oct 2005 10:51:21 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Since turning on a savehist mode calls `savehist-load', it has the nasty
> side effect of ruining existing minibuffer histories.

BTW, one solution is to make sure savehist-load doesn't ruin
existing history.  For that ~/.emacs-history should be changed from

         (setq foo1 bar1)
         (setq foo2 bar2)
         ...
to
        (savehist-set-history
         foo1 bar1
         foo2 bar2
         ...)

and then define savehist-set-history to *merge* bar1/bar2/... with the
already existing value of foo1/foo2/...
"Merge" here is probably something along the lines of `append' or
(delete-duplicate (append ...)).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]