From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Koppelman Newsgroups: gmane.emacs.devel Subject: Re: Yanking isearch to highlight-regexp Date: Tue, 17 Jun 2008 13:50:23 -0500 Message-ID: References: <4853F884.7000609@gmail.com> <7dbe73ed0806141442h342f8ff0u83863f3980a7e229@mail.gmail.com> <48545D78.8080103@gmail.com> <4854E536.8040407@gmail.com> <87k5gql900.fsf@jurta.org> <87hcbt59s6.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 1213728641 4628 80.91.229.12 (17 Jun 2008 18:50:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2008 18:50:41 +0000 (UTC) Cc: "Lennart Borgman \(gmail\)" , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 17 20:51:25 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 1K8gH5-0006bI-6n for ged-emacs-devel@m.gmane.org; Tue, 17 Jun 2008 20:51:23 +0200 Original-Received: from localhost ([127.0.0.1]:52504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8gGG-0006kW-Qu for ged-emacs-devel@m.gmane.org; Tue, 17 Jun 2008 14:50:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8gGB-0006j9-87 for emacs-devel@gnu.org; Tue, 17 Jun 2008 14:50:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8gG9-0006ix-B4 for emacs-devel@gnu.org; Tue, 17 Jun 2008 14:50:26 -0400 Original-Received: from [199.232.76.173] (port=38637 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8gG9-0006iu-8I for emacs-devel@gnu.org; Tue, 17 Jun 2008 14:50:25 -0400 Original-Received: from ecelsrv1.ece.lsu.edu ([130.39.223.98]:42361) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8gG8-0002JE-Ri for emacs-devel@gnu.org; Tue, 17 Jun 2008 14:50:25 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by ecelsrv1.ece.lsu.edu (Postfix) with ESMTP id DCCB5281AC; Tue, 17 Jun 2008 18:50:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at ece.lsu.edu Original-Received: from ecelsrv1.ece.lsu.edu ([127.0.0.1]) by localhost (ecelsrv1.ece.lsu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PwcbYt+sJKvV; Tue, 17 Jun 2008 13:50:23 -0500 (CDT) Original-Received: from nested.ece.lsu.edu (nested.ece.lsu.edu [130.39.222.143]) by ecelsrv1.ece.lsu.edu (Postfix) with ESMTP id 381C9281A9; Tue, 17 Jun 2008 13:50:23 -0500 (CDT) In-Reply-To: <87hcbt59s6.fsf@jurta.org> (Juri Linkov's message of "Tue, 17 Jun 2008 00:50:50 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:99366 Archived-At: That sounds good. Juri Linkov writes: >> 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.