From unknown Sat Aug 16 21:16:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#23884 <23884@debbugs.gnu.org> To: bug#23884 <23884@debbugs.gnu.org> Subject: Status: 24.5; `(query)-replace-regexp` doc: be clearer about \N Reply-To: bug#23884 <23884@debbugs.gnu.org> Date: Sun, 17 Aug 2025 04:16:06 +0000 retitle 23884 24.5; `(query)-replace-regexp` doc: be clearer about \N reassign 23884 emacs submitter 23884 Drew Adams severity 23884 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 02 10:36:47 2016 Received: (at submit) by debbugs.gnu.org; 2 Jul 2016 14:36:47 +0000 Received: from localhost ([127.0.0.1]:34772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJM2J-0000u7-1p for submit@debbugs.gnu.org; Sat, 02 Jul 2016 10:36:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJM2G-0000tu-RN for submit@debbugs.gnu.org; Sat, 02 Jul 2016 10:36:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJM2A-0005mf-O2 for submit@debbugs.gnu.org; Sat, 02 Jul 2016 10:36:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_50,XPRIO autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJM2A-0005mW-Kl for submit@debbugs.gnu.org; Sat, 02 Jul 2016 10:36:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJM28-0002TY-9r for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 10:36:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJM23-0005ky-As for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 10:36:35 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:36062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJM23-0005jr-2E for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 10:36:31 -0400 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u62EaRaL021264 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 2 Jul 2016 14:36:28 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u62EaRjd026459 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 2 Jul 2016 14:36:27 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u62EaPRn006257 for ; Sat, 2 Jul 2016 14:36:26 GMT MIME-Version: 1.0 Message-ID: <05121246-59dd-4ebe-b3c7-7b27ed6167fa@default> Date: Sat, 2 Jul 2016 07:36:23 -0700 (PDT) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 24.5; `(query)-replace-regexp` doc: be clearer about \N X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Please make it clear what N is in \N in a replacement pattern. State that \0 matches the entire input pattern, rather than the first subgroup. Users of Emacs regexps might be used to this, but it doesn't hurt to call it out explicitly in this doc (both manual and doc strings). Here is proof that at least one user, who was trying to use this feature normally, and seems to be quite competent, tried to use \0 to match the first subgroup: http://emacs.stackexchange.com/q/24329/105 In GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/usr --host=3Di686-pc-mingw32' From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 02 11:06:46 2016 Received: (at 23884-done) by debbugs.gnu.org; 2 Jul 2016 15:06:46 +0000 Received: from localhost ([127.0.0.1]:34785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJMVK-0001bj-3l for submit@debbugs.gnu.org; Sat, 02 Jul 2016 11:06:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJMVG-0001bU-Uu for 23884-done@debbugs.gnu.org; Sat, 02 Jul 2016 11:06:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJMV7-0003n0-Ec for 23884-done@debbugs.gnu.org; Sat, 02 Jul 2016 11:06:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJMV7-0003mw-BI; Sat, 02 Jul 2016 11:06:33 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3214 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bJMV4-0001Gx-VQ; Sat, 02 Jul 2016 11:06:32 -0400 Date: Sat, 02 Jul 2016 18:06:09 +0300 Message-Id: <83lh1krsf2.fsf@gnu.org> From: Eli Zaretskii To: Drew Adams In-reply-to: <05121246-59dd-4ebe-b3c7-7b27ed6167fa@default> (message from Drew Adams on Sat, 2 Jul 2016 07:36:23 -0700 (PDT)) Subject: Re: bug#23884: 24.5; `(query)-replace-regexp` doc: be clearer about \N References: <05121246-59dd-4ebe-b3c7-7b27ed6167fa@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 23884-done Cc: 23884-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) > Date: Sat, 2 Jul 2016 07:36:23 -0700 (PDT) > From: Drew Adams > > Please make it clear what N is in \N in a replacement pattern. State > that \0 matches the entire input pattern, rather than the first > subgroup. Users of Emacs regexps might be used to this, but it doesn't > hurt to call it out explicitly in this doc (both manual and doc > strings). > > Here is proof that at least one user, who was trying to use this feature > normally, and seems to be quite competent, tried to use \0 to match the > first subgroup: > > http://emacs.stackexchange.com/q/24329/105 Whole generations of programmers were brain-washed with the zero-based counting, and with the idea that reading the documentation is not necessary. Fixed. From unknown Sat Aug 16 21:16:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 31 Jul 2016 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator