emacs-devel
[Top][All Lists]
Advanced

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

RE: let HISTORY arg to read functions be a list of history variables


From: Drew Adams
Subject: RE: let HISTORY arg to read functions be a list of history variables
Date: Sun, 1 Jul 2007 15:06:56 -0700

> > Then, for example, you could write this and let users use a regexp from
> > either history:
> >
> > (read-string "Regexp: " nil '(hi-lock-regexp-history regexp-history))
>
> A very easy way to achieve this is following:
>
> (let* ((history-add-new-input nil)
>        (history (append hi-lock-regexp-history regexp-history))
>        (str (read-string "Prompt: " nil 'history)))
>   (add-to-history 'hi-lock-regexp-history str))

Sure. But that's hardly as readable. My proposal was to build that into the
read functions (but without the extraneous addition of the input to the
temporary history variable). Anyway, Richard has nixed the idea.





reply via email to

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