emacs-devel
[Top][All Lists]
Advanced

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

Re: Yanking isearch to highlight-regexp


From: Juri Linkov
Subject: Re: Yanking isearch to highlight-regexp
Date: Mon, 16 Jun 2008 01:54:55 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)

>> I think the key `C-x w' by its mnemonics would be more suitable for
>> a command that writes to the file like `C-x C-w'.
>>
>> As the comment in hi-lock.el suggests to bind it rather to `C-z h',
>
> I just want the key binding to be the same as I use outside of isearch.
>
> There were no global binding for `occur' so in that case I thought
> `M-s o' was good, but in this case I would really prefer the same
> binding inside isearch.

`C-x w h' is not available until hi-lock.el is loaded, but `M-s h'
is the pretty harmless and convenient key binding to keep the
isearch highlighting permanent in the entire buffer.

> My rather cryptic patch to hi-lock.el provided that -
> you are very welcome to make it better if you want.

Your patch looks like a good idea, so perhaps the same thing
should be applied also to occur, keep-lines, flush-lines, etc.
(in a new unified function `read-regexp').  This means that
e.g. `C-s string M-x keep-lines RET' will provide the last
isearch string as the minibuffer default input value.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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