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: Tue, 17 Jun 2008 00:48:08 +0300 Organization: JURTA Message-ID: <87ve096oxy.fsf@jurta.org> References: <4853F884.7000609@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> <87od61emcv.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213653271 1068 80.91.229.12 (16 Jun 2008 21:54:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2008 21:54:31 +0000 (UTC) Cc: David Koppelman , emacs-devel@gnu.org To: "Lennart Borgman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 16 23:55:14 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 1K8MfI-0000ID-C3 for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2008 23:55:04 +0200 Original-Received: from localhost ([127.0.0.1]:40918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8MeU-0005sQ-61 for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2008 17:54:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8MeQ-0005sL-Jb for emacs-devel@gnu.org; Mon, 16 Jun 2008 17:54:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8MeM-0005s1-Tj for emacs-devel@gnu.org; Mon, 16 Jun 2008 17:54:10 -0400 Original-Received: from [199.232.76.173] (port=52975 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8MeM-0005ry-QO for emacs-devel@gnu.org; Mon, 16 Jun 2008 17:54:06 -0400 Original-Received: from relay03.kiev.sovam.com ([62.64.120.201]:54843) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K8MeM-0003no-D9 for emacs-devel@gnu.org; Mon, 16 Jun 2008 17:54:06 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay03.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1K8MeJ-0008E2-8K; Tue, 17 Jun 2008 00:54:03 +0300 In-Reply-To: (Lennart Borgman's message of "Mon, 16 Jun 2008 13:13:02 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 5bcd58edb95cdacf596e852bfe0375ec X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 3157 [June 17 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:99320 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. > > That idea seems good to me as long as a key for highlight-regexp is defined > in global-map. M-s is the ideal prefix key for search related commands in the global map. -- Juri Linkov http://www.jurta.org/emacs/