[Conkeror] conkeror-xr: string input with history?

John J Foerch jjfoerch at earthlink.net
Tue Nov 6 07:53:13 PST 2007


"Mark Eichin" <eichin at gmail.com> writes:
> Hmm, looking at emacs' (interactive), it appears that it's simpler
> just because it's lisp, so it only needs "simple string" and "eval and
> expect a simple string."  Though that model might work here too, even
> if it means using a list of strings; it lets you put one is-function
> check up front...
>

Perhaps arguments to interactive methods should always be passed in
objects, rather than arrays, thus pass-by-name instead of
pass-by-position.  That leaves the question of whether to require all
args be strings to eval, functions to call, or typecase it to allow
both functions and literals.  Eval is messy style in javascript, and
best reserved for where it is truly needed--I don't think this is an
instance where it is needed.  Typechecking is probably the way to go,
but it would be nice to have all the typechecking in one place,
instead of strewn throughout all the interactive_methods.

> (For my particular case, it turns out that to get simple history, I
> can just use "url_or_webjump" instead of "s", since there's no actual
> url-sanity check :-)
>

that's not to say there never will be a sanity check there..

--John



More information about the Conkeror mailing list