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 12:34:14 +0300 Organization: JURTA Message-ID: <87od61emcv.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> <87od62iblh.fsf@jurta.org> <4855A147.20703@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213610161 5651 80.91.229.12 (16 Jun 2008 09:56:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2008 09:56:01 +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 11:56:45 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 1K8BS4-0007ij-RM for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2008 11:56:41 +0200 Original-Received: from localhost ([127.0.0.1]:60503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8BRG-0002fW-Hp for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2008 05:55:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8BQu-0002Xp-Uf for emacs-devel@gnu.org; Mon, 16 Jun 2008 05:55:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8BQs-0002WH-Ct for emacs-devel@gnu.org; Mon, 16 Jun 2008 05:55:27 -0400 Original-Received: from [199.232.76.173] (port=38388 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8BQs-0002W9-6P for emacs-devel@gnu.org; Mon, 16 Jun 2008 05:55:26 -0400 Original-Received: from relay01.kiev.sovam.com ([62.64.120.200]:3968) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K8BQr-0006SE-Ne for emacs-devel@gnu.org; Mon, 16 Jun 2008 05:55:25 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1K8BQm-0001Nk-Bm; Mon, 16 Jun 2008 12:55:20 +0300 In-Reply-To: <4855A147.20703@gmail.com> (Lennart Borgman's message of "Mon, 16 Jun 2008 01:09:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 367251710ae6d8069d2a2bb66b314d03 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 3142 [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 4.8-5.1 (or MacOS X 10.2-10.3) 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:99296 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. > > Yes, but I suggested adding `C-x w h' to global-map too. Is there any > reason not to do that? (It is useful, not dangerous and the binding seems > to be reserved.) I think it is better to reserve the global `C-x w' for more mnemonic commands (e.g. "write" or "window"), and rebind hi-lock keys to the search specific prefix key. -- Juri Linkov http://www.jurta.org/emacs/