[Top][All Lists]

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

Re: Leaving isearch-mode and keeping the highlite

From: Lennart Borgman
Subject: Re: Leaving isearch-mode and keeping the highlite
Date: Thu, 11 Aug 2005 04:47:01 +0200
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Drew Adams wrote:

   >Turning it on by a particular exit key sequence is not the
   >best way. I would
   >rather have that be a user option (like case-fold-search), and
   >be able to
   >toggle the option while in isearch (like we can toggle

   Too cumbersome to me. Sometimes I want to leave the highlite there,
   sometimes not.

I was speaking here about turning highlighting on, not removing existing
highlighting. You seem to be talking about the latter here.

From Juri's message, there is an option already, and a command to remove the
highlighting. Letting the next search remove the previous highlighting seems
better, to me than using a separate command.

Wrt toggling the highlight persistence, it would be handy to have an
isearch-mode-map binding that toggles option `lazy-highlight-cleanup'.

Having different search-exit key sequences to either leave the highlighting
or remove it, as you suggest, sounds a bit more cumbersome to me. It would
be easier to just toggle the persistence on or off while searching.

You aren't going to want to think about the persistence each time you exit
isearch - just turn it on when you want and off when you want. I see this
much like case-fold-search, except that the effect of the toggle only takes
place after you exit isearch.

Since the option isearch-lazy-highlight-cleanup exists I extend my suggestion a bit to let C-RET (or S-RET) mean "toggle isearch-lazy-highlight-cleanup for me temporary when I exit search".

That way there is less to keep in your head when you exit isearch. You do not have to remember if you already have toggled the option because it is always in its usual state. You would have to do that if you toggled the option during the search and that would distract your brain I guess which is working with how to search at that moment.

reply via email to

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