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: Mathias Dahl
Subject: Re: let HISTORY arg to read functions be a list of history variables
Date: Sun, 1 Jul 2007 15:48:10 +0200

On 7/1/07, Drew Adams <address@hidden> wrote:
1. How about letting the HISTORY argument to read functions (e.g.
`read-string') be a list of history variables, in addition to letting it be
a single history variable? The histories would be appended for user
retrieval. The convention for saving the user input could be either that it
is added to only the first history or that it is added to each of the
histories.

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))

We could also allow a function as argument, then you could implement
whatever kind of strange source of input history you wanted. Maybe
that could be done for the "save back" variable argument you proposed.

Just an idea.




reply via email to

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