[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Leaving isearch-mode and keeping the highlite
From: |
Juri Linkov |
Subject: |
Re: Leaving isearch-mode and keeping the highlite |
Date: |
Thu, 11 Aug 2005 04:05:28 +0300 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
> Thanks, but that was not what I suggested. I suggested a key binding
> to leave the highlight after search. But maybe you just wanted to
> tell that it is possible to do this?
>
>>BTW, I use C-RET to exit the search without pushing the search string
>>into the search ring. Very useful to not stuff the search history
>>with unnecessary search strings.
>>
> Yes, it seems useful to. It is kind of the same idea. I suppose you
> would not like this to be an option.
Yes, a permanent option is not suitable, because whether to use it
depends on the concrete situation. Leaving the highlighting after the
search you suggested is the same thing.
I want to mention also that I use C-RET to leave point at the beginning
of the found string instead of the end. There are possible other useful
things to do.
So the question is what is a good user interface for performing
different actions on exit? Maybe to use a prefix argument, e.g.:
`M-1 RET' - don't remove highlighting
`M-2 RET' - don't push the search string into the search ring
`M-3 RET' - leave point at the beginning of the found string
And how to combine them? Maybe as digits of the decimal number:
`M-123 RET'
--
Juri Linkov
http://www.jurta.org/emacs/