From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Yanking isearch to highlight-regexp Date: Mon, 16 Jun 2008 01:54:55 +0300 Organization: JURTA Message-ID: <87od62iblh.fsf@jurta.org> References: <4853F884.7000609@gmail.com> <7dbe73ed0806141442h342f8ff0u83863f3980a7e229@mail.gmail.com> <48545D78.8080103@gmail.com> <4854E536.8040407@gmail.com> <87k5gql900.fsf@jurta.org> <48558541.5000209@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213570898 15528 80.91.229.12 (15 Jun 2008 23:01:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Jun 2008 23:01:38 +0000 (UTC) Cc: David Koppelman , emacs-devel@gnu.org To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 16 01:02:20 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K81Eo-0007yV-1x for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2008 01:02:18 +0200 Original-Received: from localhost ([127.0.0.1]:42827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K81E0-0001UJ-17 for ged-emacs-devel@m.gmane.org; Sun, 15 Jun 2008 19:01:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K81Du-0001Tk-9z for emacs-devel@gnu.org; Sun, 15 Jun 2008 19:01:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K81Ds-0001S3-NJ for emacs-devel@gnu.org; Sun, 15 Jun 2008 19:01:21 -0400 Original-Received: from [199.232.76.173] (port=32801 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K81Ds-0001Rx-KY for emacs-devel@gnu.org; Sun, 15 Jun 2008 19:01:20 -0400 Original-Received: from anti-4.kiev.sovam.com ([62.64.120.202]:62389) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K81Ds-0006Cn-1T for emacs-devel@gnu.org; Sun, 15 Jun 2008 19:01:20 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by anti-4.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1K81Dp-000Nss-Lm; Mon, 16 Jun 2008 02:01:17 +0300 In-Reply-To: <48558541.5000209@gmail.com> (Lennart Borgman's message of "Sun, 15 Jun 2008 23:10:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 0a21689c2f1d2e94d8aa83f1a1b60733 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 3141 [June 16 2008] X-SpamTest-Info: {received from trusted relay: common white list} X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: white ip list X-SpamTest-Rate: 10 X-SpamTest-Status: Trusted X-SpamTest-Status-Extended: trusted X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99277 Archived-At: >> 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/