Ah, thanks. That works.

--B.

On 14 February 2011 11:51, John J. Foerch <[email protected]> wrote:

> On Mon, Feb 14, 2011 at 08:45:53AM -0600, Benjamin Slade wrote:
> > Re: http://conkeror.org/Tips#SelectionSearches
> >
> > The prompted selection search currently places the relevant webjump+" "
> in the
> > minibuffer, but selects/highlights the entire line, requiring C-e or the
> like
> > to avoid erasing it.
> >
> > (1) I thought it would be ideal if the webjump itself didn't appear in
> the
> > minibuffer (but just in the prompt), and one could simply type the item
> to be
> > searched for in the minibuffer.
> >
> > I tried changing it like so (emphasised changes), but it doesn't work (it
> > displays "TypeError: doc is undefined"):
> >
> > ...
> >     interactive("prompted-"+webjump+"-search", null,
> >                 function (I) {
> >                     var term = yield I.minibuffer.read_url($prompt =
> "Search
> > "+webjump+":",
> >                                                            $initial_value
> = ""
> > );
> >                     browser_object_follow(I.buffer, FOLLOW_DEFAULT,
> webjump+"
> > "+term);
> >                 });
> >     define_key(content_buffer_normal_keymap, key, "prompted-" + webjump +
> > "-search");
> >
> >
> > I'm guessing this might be hard to implement.
> >
> > (2) Alternatively, is there a way to automatically deselect the contents
> of the
> > minibuffer, so that C-e or the like is not required to avoid erasing it?
> >
> > thanks,
> >   --Ben
>
>
> The variable minibuffer_read_url_select_initial.
>
> --
> John Foerch
>



-- 
-----------------------------------------------------------------------------------------------------
Benjamin Slade
Dept. of Linguistics
University of Illinois at Urbana-Champaign
[ http://www.jnanam.net/slade/ ]

Stæfcræft & Vyākaraṇa (lingblog) - http://staefcraeft.blogspot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com

-----------------------------------------------------------------------------------------------------
  *प*रो ऽक्ष॑का*मा* हि *दे*वाः
    'The gods love the obscure.' (Śatapathabrāmaṇa 6.1.1.2)
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to