From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Leaving isearch-mode and keeping the highlite
Date: Thu, 11 Aug 2005 04:47:01 +0200 [thread overview]
Message-ID: <42FABC25.7090501@student.lu.se> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICCEIOCLAA.drew.adams@oracle.com>
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
> >case-fold-search).
>
> 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.
next prev parent reply other threads:[~2005-08-11 2:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-10 23:03 Leaving isearch-mode and keeping the highlite Lennart Borgman
2005-08-10 23:20 ` Drew Adams
2005-08-10 23:42 ` Lennart Borgman
2005-08-11 2:20 ` Drew Adams
2005-08-11 2:47 ` Lennart Borgman [this message]
2005-08-11 0:27 ` Juri Linkov
2005-08-11 0:58 ` Lennart Borgman
2005-08-11 1:05 ` Juri Linkov
2005-08-11 20:40 ` Richard M. Stallman
2005-08-12 7:41 ` Emilio Lopes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42FABC25.7090501@student.lu.se \
--to=lennart.borgman.073@student.lu.se \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.