> 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/



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to