From unknown Mon Jun 23 06:00:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8161: 24.0.50; query-replace-regexp fails with interactive replacement text Resent-From: Suvayu Ali Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Mar 2011 09:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8161 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8161@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.129914279611994 (code B ref -1); Thu, 03 Mar 2011 09:00:03 +0000 Received: (at submit) by debbugs.gnu.org; 3 Mar 2011 08:59:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pv4O3-00037N-W2 for submit@debbugs.gnu.org; Thu, 03 Mar 2011 03:59:56 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pv4O1-00037A-8X for submit@debbugs.gnu.org; Thu, 03 Mar 2011 03:59:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pv4Nu-0003XD-3M for submit@debbugs.gnu.org; Thu, 03 Mar 2011 03:59:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:59311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv4Nu-0003X3-0T for submit@debbugs.gnu.org; Thu, 03 Mar 2011 03:59:46 -0500 Received: from [140.186.70.92] (port=59661 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv4Ns-0007rZ-Cl for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 03:59:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pv4Nq-0003Wc-NJ for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 03:59:44 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:35449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv4Nq-0003WW-G8 for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 03:59:42 -0500 Received: by gyb13 with SMTP id 13so415152gyb.0 for ; Thu, 03 Mar 2011 00:59:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:subject:message-id:x-mailer :mime-version:content-type:content-transfer-encoding; bh=0drOyjisJaeO+0YQyl7rTUVYK0MWWiQQttRT3RVhvXM=; b=dfM1SXlXA0nL3S/4RPwT9f/z8zhGphpmQPKKJTG1n/sEz+fSlQ5UOXXTOC0k6/fpMq Iptt93R+SyZaxMHoAUJ7dNqEN4ww5zzxSqfM1ZLcIU5nKknYbpRuNnXFQFT1g84ZjWgO TG6Kwk9DyAIwe5bZCgg/AwmloyJFTVVHhomdo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; b=THy4XvlhTJufeode9tSo9TEwgwkYaHjqgLh0Gepa+D+jJX+MEdqlmbrqK25YKC7bI0 4o+28/k7RbcIldtmTW2rGCHukJC2EiTqvnrrodnZBt7FO9C5uIfXbNfgctAsbOrwOkH/ 82WSLO99G92Z2H5ZG45aX5bHqelbWXZ2tklVM= Received: by 10.90.29.18 with SMTP id c18mr1593642agc.142.1299142781767; Thu, 03 Mar 2011 00:59:41 -0800 (PST) Received: from bhishma.homelinux.net (d207-6-162-107.bchsia.telus.net [207.6.162.107]) by mx.google.com with ESMTPS id e24sm1232230ana.22.2011.03.03.00.59.40 (version=SSLv3 cipher=OTHER); Thu, 03 Mar 2011 00:59:41 -0800 (PST) Date: Thu, 3 Mar 2011 00:59:37 -0800 From: Suvayu Ali Message-ID: <20110303005937.1804abf6@bhishma.homelinux.net> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.20.1; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.9 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Hi Emacs devs, I wanted to replace interactively all numbers in the text of an document with the number in words, so I tried: `C-M-% [0-9]+ RET \? RET' But this gives me an error like this: > Debugger entered--Lisp error: (error "Invalid use of `\\' in > replacement text") replace-match("\\?" nil nil #("1" 0 1 (fontified > t)) nil) match-substitute-replacement("\\?" nil nil) > perform-replace("[0-9]+" "\\?" t t nil nil nil nil nil) > query-replace-regexp("[0-9]+" "\\?" nil nil nil) > call-interactively(query-replace-regexp nil nil) Since the doc string of `query-replace-regexp' says the following: > ... > In TO-STRING, `\&' stands for whatever matched the whole of REGEXP, > and `\N' (where N is a digit) stands for > whatever what matched the Nth `\(...\)' in REGEXP. > `\?' lets you edit the replacement text in the minibuffer > at the given position for each replacement. > ... and two other users have confirmed[1] this behaviour on the help-gnu-emacs list, I believe this is a bug. I have included all the information below starting emacs with "emacs -Q". Hope this helps tracking down the bug. Suvayu [1]http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/8f5ef5f9ade589e3# In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2011-03-02 on bhishma.homelinux.net Windowing system distributor `Fedora Project', version 11.0.10802000 configured using `configure '--prefix=/opt/emacs-lisp' '--with-selinux' '--with-imagemagick'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_IN.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: 1 2 3 4 5 6 7 8 9 0 C-M-% [ 0 - 9 ] + \ ? C-SPC M-w M-x e m a c s - r e p o r e p o t r t - Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. byte-code: End of buffer [2 times] Debug on Error enabled globally Mark set Entering debugger... byte-code: Beginning of buffer [4 times] Mark set byte-code: End of buffer Making completion list... Load-path shadows: /opt/emacs-lisp/share/emacs/site-lisp/flim/hex-util hides /opt/emacs-lisp/share/emacs/24.0.50/lisp/hex-util /opt/emacs-lisp/share/emacs/site-lisp/flim/sha1 hides /opt/emacs-lisp/share/emacs/24.0.50/lisp/sha1 /opt/emacs-lisp/share/emacs/site-lisp/flim/md4 hides /opt/emacs-lisp/share/emacs/24.0.50/lisp/md4 /opt/emacs-lisp/share/emacs/site-lisp/flim/ntlm hides /opt/emacs-lisp/share/emacs/24.0.50/lisp/net/ntlm /opt/emacs-lisp/share/emacs/site-lisp/flim/sasl hides /opt/emacs-lisp/share/emacs/24.0.50/lisp/net/sasl /opt/emacs-lisp/share/emacs/site-lisp/flim/sasl-digest hides /opt/emacs-lisp/share/emacs/24.0.50/lisp/net/sasl-digest /opt/emacs-lisp/share/emacs/site-lisp/flim/sasl-cram hides /opt/emacs-lisp/share/emacs/24.0.50/lisp/net/sasl-cram /opt/emacs-lisp/share/emacs/site-lisp/flim/sasl-ntlm hides /opt/emacs-lisp/share/emacs/24.0.50/lisp/net/sasl-ntlm /opt/emacs-lisp/share/emacs/site-lisp/flim/hmac-md5 hides /opt/emacs-lisp/share/emacs/24.0.50/lisp/net/hmac-md5 /opt/emacs-lisp/share/emacs/site-lisp/flim/hmac-def hides /opt/emacs-lisp/share/emacs/24.0.50/lisp/net/hmac-def Features: (shadow sort mail-extr message idna sendmail regexp-opt rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader emacsbug url-util url-parse auth-source eieio byte-opt bytecomp byte-compile assoc gnus-util time-date password-cache url-vars mm-util mail-prsvr help-mode easymenu view debug cus-start cus-load tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- Suvayu Open source is the future. It sets us free. From unknown Mon Jun 23 06:00:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8161: 24.0.50; query-replace-regexp fails with interactive replacement text In-Reply-To: <20110303005937.1804abf6@bhishma.homelinux.net> Resent-From: Lawrence Mitchell Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Mar 2011 16:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8161 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.129916934921758 (code B ref -1); Thu, 03 Mar 2011 16:23:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Mar 2011 16:22:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvBIK-0005er-Su for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:22:29 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvBII-0005ef-Oa for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:22:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvBI5-0003FG-Vy for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:22:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:45426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvBI5-0003FC-Tf for submit@debbugs.gnu.org; Thu, 03 Mar 2011 11:22:13 -0500 Received: from [140.186.70.92] (port=41004 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvBI0-0003WA-Ik for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 11:22:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvBHv-0003C0-Dr for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 11:22:08 -0500 Received: from lo.gmane.org ([80.91.229.12]:49240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvBHv-0003Bg-2J for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 11:22:03 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PvBHt-0008FU-U5 for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2011 17:22:01 +0100 Received: from e4300lm.epcc.ed.ac.uk ([129.215.63.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Mar 2011 17:22:01 +0100 Received: from wence by e4300lm.epcc.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Mar 2011 17:22:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ From: Lawrence Mitchell Date: Thu, 03 Mar 2011 16:21:47 +0000 Lines: 60 Message-ID: References: <20110303005937.1804abf6@bhishma.homelinux.net> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: e4300lm.epcc.ed.ac.uk User-Agent: Gnus/5.110012 (No Gnus v0.12) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:cHafB3doPJrJq2lLclokLo97jcs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.4 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.4 (-----) Suvayu Ali wrote: > Hi Emacs devs, > I wanted to replace interactively all numbers in the text of an document > with the number in words, so I tried: > `C-M-% [0-9]+ RET \? RET' > But this gives me an error like this: >> Debugger entered--Lisp error: (error "Invalid use of `\\' in >> replacement text") replace-match("\\?" nil nil #("1" 0 1 (fontified >> t)) nil) match-substitute-replacement("\\?" nil nil) >> perform-replace("[0-9]+" "\\?" t t nil nil nil nil nil) >> query-replace-regexp("[0-9]+" "\\?" nil nil nil) >> call-interactively(query-replace-regexp nil nil) > Since the doc string of `query-replace-regexp' says the following: This has been broken since Author: Juri Linkov Date: Sat Nov 10 21:48:46 2007 +0000 (query-replace-show-replacement): New defcustom. (perform-replace): Use `match-substitute-replacement' if `query-replace-show-replacement' is non-nil. replace-match (used by match-substitute-replacement) doesn't know about \? and therefore barfs. This patch just passes \\? unchanged through replace-match. I'm not sure if this is a reasonable fix, although minimal testing suggests it all works correctly. diff --git a/src/search.c b/src/search.c index 1e2036f..c9fd71b 100644 --- a/src/search.c +++ b/src/search.c @@ -2373,6 +2373,7 @@ Otherwise treat `\\' as special: `\\N' means substitute what matched the Nth `\\(...\\)'. If Nth parens didn't match, substitute nothing. `\\\\' means insert one `\\'. + `\\?' (as in `query-replace-regexp') is passed through unchanged. Case conversion does not apply to these substitutions. FIXEDCASE and LITERAL are optional arguments. @@ -2575,6 +2576,8 @@ since only regular expressions have distinguished subexpressions. */) } else if (c == '\\') delbackslash = 1; + else if (c == '?') + ; /* do nothing (dealt with at lisp level) */ else error ("Invalid use of `\\' in replacement text"); } Lawrence -- Lawrence Mitchell From unknown Mon Jun 23 06:00:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8161: 24.0.50; query-replace-regexp fails with interactive replacement text Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Mar 2011 23:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8161 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lawrence Mitchell Cc: 8161@debbugs.gnu.org Received: via spool by 8161-submit@debbugs.gnu.org id=B8161.129919373527087 (code B ref 8161); Thu, 03 Mar 2011 23:09:02 +0000 Received: (at 8161) by debbugs.gnu.org; 3 Mar 2011 23:08:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvHde-00072q-Rp for submit@debbugs.gnu.org; Thu, 03 Mar 2011 18:08:55 -0500 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvHdd-00072e-9C for 8161@debbugs.gnu.org; Thu, 03 Mar 2011 18:08:53 -0500 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 231366E8050; Thu, 3 Mar 2011 15:08:47 -0800 (PST) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 3ADB1451C275; Thu, 3 Mar 2011 15:08:46 -0800 (PST) From: Juri Linkov Organization: JURTA References: <20110303005937.1804abf6@bhishma.homelinux.net> Date: Fri, 04 Mar 2011 01:04:46 +0200 In-Reply-To: (Lawrence Mitchell's message of "Thu, 03 Mar 2011 16:21:47 +0000") Message-ID: <87ipvzpzzl.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > This has been broken since > > Author: Juri Linkov > Date: Sat Nov 10 21:48:46 2007 +0000 > > (query-replace-show-replacement): New defcustom. > (perform-replace): Use `match-substitute-replacement' if > `query-replace-show-replacement' is non-nil. Don't blame the committer ;-) This feature (\?) is specific to `query-replace-regexp', so mentioning it in low-level `replace-match' would be wrong. It should be dealt at the same level where it's used in replace.el the same way as \? is processed in `replace-match-maybe-edit'. From unknown Mon Jun 23 06:00:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8161: 24.0.50; query-replace-regexp fails with interactive replacement text Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Aug 2012 13:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8161 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 8161@debbugs.gnu.org, Lawrence Mitchell Received: via spool by 8161-submit@debbugs.gnu.org id=B8161.13441739867662 (code B ref 8161); Sun, 05 Aug 2012 13:40:02 +0000 Received: (at 8161) by debbugs.gnu.org; 5 Aug 2012 13:39:46 +0000 Received: from localhost ([127.0.0.1]:34911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sy13Z-0001zX-8p for submit@debbugs.gnu.org; Sun, 05 Aug 2012 09:39:45 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:39338) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sy13X-0001zO-C4 for 8161@debbugs.gnu.org; Sun, 05 Aug 2012 09:39:44 -0400 Received: by pbbrr4 with SMTP id rr4so2418483pbb.3 for <8161@debbugs.gnu.org>; Sun, 05 Aug 2012 06:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=7v1+jwT3YvDN4G9gK00J6nmC8G4D8GfoSzyH6ZIlqh4=; b=Rd40GlZYJE4kico9zW3tjhPFlZBD/q86vkLIW9xkzdcaIm2EK7nAtZmSKWjxlrPPq6 dqNyW/LKJs6/jXAEQcPbR3ncvmJ9Hmba0PPXPkyAyGMugQLo/Jt0Vyr95lP0deZvlcoI Sm78SR4vOGCHbrOMGVzg+Dqan60PGHKmYH9dfQ3snDudC0K/SLEhTwmEaOOj52OtG13B GeOkzZCa21SKHlAYIU5Xx8rp+PtCDwiq/DqAxCQaWfp4+uhdwHmkkFq8fmptF2l7aJHZ JCKKDs49TVWHRS4KqhMRsuIRAwaSrlHkBLibz3wMqIoi5FifnpbrW6OwY2Z4gL8M3IOO KSFQ== Received: by 10.66.87.66 with SMTP id v2mr11485439paz.71.1344173514382; Sun, 05 Aug 2012 06:31:54 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id op10sm3457502pbc.75.2012.08.05.06.31.51 (version=SSLv3 cipher=OTHER); Sun, 05 Aug 2012 06:31:53 -0700 (PDT) From: Chong Yidong References: <20110303005937.1804abf6@bhishma.homelinux.net> <87ipvzpzzl.fsf@mail.jurta.org> Date: Sun, 05 Aug 2012 21:31:49 +0800 In-Reply-To: <87ipvzpzzl.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 04 Mar 2011 01:04:46 +0200") Message-ID: <877gtdxy62.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Juri Linkov writes: > This feature (\?) is specific to `query-replace-regexp', so mentioning > it in low-level `replace-match' would be wrong. It should be dealt at > the same level where it's used in replace.el the same way as \? is > processed in `replace-match-maybe-edit'. I didn't see a clean way to do this, so I committed Lawrence's patch. This bug ought to have been fixed for 24.1, but it got lost in the pile; sorry. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 05 09:39:58 2012 Received: (at control) by debbugs.gnu.org; 5 Aug 2012 13:39:58 +0000 Received: from localhost ([127.0.0.1]:34914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sy13l-0001zx-W6 for submit@debbugs.gnu.org; Sun, 05 Aug 2012 09:39:58 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:39338) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sy13k-0001zO-Ot for control@debbugs.gnu.org; Sun, 05 Aug 2012 09:39:57 -0400 Received: by mail-pb0-f44.google.com with SMTP id rr4so2418483pbb.3 for ; Sun, 05 Aug 2012 06:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=L9Y14/Ky50krnWddFH18ShRoVFdu1LjEvXNC8IzKUNc=; b=Kel/b+sT0mWgwqWwudfob2FJJJlNbKjwKFUSTzwrZCm2/fhQaZb2wIIwirVBw78ou1 ZC0DJtgb0teE/DMdQM6MBBv5PcuXY9fAuq7tbo60C4jnUVY4zwfdYQJJozkIv4em+ybX YkgKEryamLy6eU6C1069kgx/Cu0J6n5bGJIL4v53NbfxiZu9VwIUOubpo4zy3RHh622E oRmZJF63DiTDDL0qklx49KSFiSk43chH4pRLFzfBYGI11tz+ueN/xTdMJ8U6r6eHA9Xe RVa8yf/xwViSeZjhMPGhOexDyE96gZf5UTYoE78SzeoTqPKTRhCs8gp7QZv+OXq/Zx6v VfYQ== Received: by 10.68.200.138 with SMTP id js10mr11864795pbc.23.1344173529240; Sun, 05 Aug 2012 06:32:09 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id wh7sm3457713pbc.33.2012.08.05.06.32.05 (version=SSLv3 cipher=OTHER); Sun, 05 Aug 2012 06:32:08 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8161 Date: Sun, 05 Aug 2012 21:32:03 +0800 Message-ID: <87boipjwh8.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 8161 thanks