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:50:50 +0300 Organization: JURTA Message-ID: <87hcbt59s6.fsf@jurta.org> References: <4853F884.7000609@gmail.com> <7dbe73ed0806141442h342f8ff0u83863f3980a7e229@mail.gmail.com> <48545D78.8080103@gmail.com> <4854E536.8040407@gmail.com> <87k5gql900.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 1213653304 1174 80.91.229.12 (16 Jun 2008 21:55:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2008 21:55:04 +0000 (UTC) Cc: "Lennart Borgman \(gmail\)" , emacs-devel@gnu.org To: David Koppelman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 16 23:55:47 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 1K8Mfz-0000YX-4h for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2008 23:55:47 +0200 Original-Received: from localhost ([127.0.0.1]:42389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8Mf9-0006HN-J6 for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2008 17:54:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8MeS-0005so-8w for emacs-devel@gnu.org; Mon, 16 Jun 2008 17:54:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8MeN-0005s9-L4 for emacs-devel@gnu.org; Mon, 16 Jun 2008 17:54:11 -0400 Original-Received: from [199.232.76.173] (port=52976 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8MeN-0005s6-Gx for emacs-devel@gnu.org; Mon, 16 Jun 2008 17:54:07 -0400 Original-Received: from relay03.kiev.sovam.com ([62.64.120.201]:54857) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K8MeM-0003o6-Rs for emacs-devel@gnu.org; Mon, 16 Jun 2008 17:54:07 -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 1K8MeL-0008Ea-64; Tue, 17 Jun 2008 00:54:05 +0300 In-Reply-To: (David Koppelman's message of "Mon, 16 Jun 2008 13:50:58 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: ef6c50392af5ec65634338665e82f3c2 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 3158 [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:99321 Archived-At: > I like the idea of combining regexp histories, but we might want to be > careful. I can see sharing patterns between hi-lock and occur because > they are used for locating things, but isearch patterns are used for > navigation and so might contain many regexps matching little pieces of > text that only occasionally would make good highlight targets. Isearch doesn't add regexps to the regexp history for the good reason, and I don't propose to do this anyway. What I propose is to add the last isearch string to the list of default values available in the minibuffer by typing M-n (not history values available by M-p). And Lennart proposed also to put the last isearch string to the minibuffer's initial input if the last command was isearch-other-control-char. -- Juri Linkov http://www.jurta.org/emacs/