From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: isearch-query-replace-regexp and stuff Date: 02 Jul 2004 09:44:25 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87d63ec1py.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088775920 10901 80.91.224.253 (2 Jul 2004 13:45:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Jul 2004 13:45:20 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jul 02 15:45:00 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 1BgOLc-000444-00 for ; Fri, 02 Jul 2004 15:45:00 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgOLb-0007Sd-00 for ; Fri, 02 Jul 2004 15:45:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgONQ-0006oz-Cs for emacs-devel@quimby.gnus.org; Fri, 02 Jul 2004 09:46:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BgONJ-0006ot-Gk for emacs-devel@gnu.org; Fri, 02 Jul 2004 09:46:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BgONI-0006oh-HR for emacs-devel@gnu.org; Fri, 02 Jul 2004 09:46:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgONI-0006oe-El for emacs-devel@gnu.org; Fri, 02 Jul 2004 09:46:44 -0400 Original-Received: from [206.47.199.166] (helo=simmts8-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BgOL5-0007QA-4y; Fri, 02 Jul 2004 09:44:27 -0400 Original-Received: from empanada.local ([67.68.219.154]) by simmts8-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20040702134358.LVYK28685.simmts8-srv.bellnexxia.net@empanada.local>; Fri, 2 Jul 2004 09:43:58 -0400 Original-Received: by empanada.local (Postfix, from userid 502) id 2FBB2240891; Fri, 2 Jul 2004 09:44:26 -0400 (EDT) Original-To: David Kastrup In-Reply-To: Original-Lines: 16 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:25394 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25394 > The other thing that might make sense is to just define M-% and use it > to start regexp replacements in regexp searches, and non-regexp > replaced in normal isearch. It might be confusing. OTOH, the C-s > binding during searches already has this sort of split personality. Indeed such a M-% binding is what I've used for the last two years and I've been pretty happy with it. But I also find M-C-% to be too hard to type, so I've rebound it to C-u M-%. The other difference with the current code is that my isearch-query-replace function does not exit isearch, so after the query-replace is done you're back in isearch mode. But this part of the behavior was a bad idea: it doesn't hurt but it's useless. Stefan