From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: isearch-query-replace-regexp and stuff Date: 02 Jul 2004 02:05:20 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088726757 7434 80.91.224.253 (2 Jul 2004 00:05:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Jul 2004 00:05:57 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jul 02 02:05:50 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgBYs-0008Bl-00 for ; Fri, 02 Jul 2004 02:05:50 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgBYs-00021o-00 for ; Fri, 02 Jul 2004 02:05:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgBaf-00089x-4d for emacs-devel@quimby.gnus.org; Thu, 01 Jul 2004 20:07:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BgBaX-000893-S6 for emacs-devel@gnu.org; Thu, 01 Jul 2004 20:07:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BgBaX-00088R-Co for emacs-devel@gnu.org; Thu, 01 Jul 2004 20:07:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgBaX-00088A-90 for emacs-devel@gnu.org; Thu, 01 Jul 2004 20:07:33 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BgBYP-00079x-Tp for emacs-devel@gnu.org; Thu, 01 Jul 2004 20:05:21 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1BgBYP-00066Y-9B for emacs-devel@gnu.org; Thu, 01 Jul 2004 20:05:21 -0400 Original-To: emacs-devel@gnu.org In-Reply-To: Original-Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25369 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25369 David Kastrup writes: > As far as I am able to judge from the current code that is just > checked in, if one types M-% from within a regexp isearch or C-M-% > from within an ordinary isearch, the history variable of the last > irrelevant search type gets consulted. > > That seems weird. I think that M-% from within a regexp isearch > should probably use the currently matched string, and C-M-% from > within an ordinary isearch should probably use regexp-quote of the > current search string. [...] While we are at it: maybe M-s should turn an ordinary search into a regexp search (while regexp-quoting the current search string to make it fitting for a regexp search), and vice versa (by using the currently matched string, if any, as search string). -- David Kastrup, Kriemhildstr. 15, 44793 Bochum