From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#23884: 24.5; `(query)-replace-regexp` doc: be clearer about \N Date: Sat, 2 Jul 2016 07:36:23 -0700 (PDT) Message-ID: <05121246-59dd-4ebe-b3c7-7b27ed6167fa@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467470248 25824 80.91.229.3 (2 Jul 2016 14:37:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jul 2016 14:37:28 +0000 (UTC) To: 23884@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 02 16:37:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bJM2k-00079I-6r for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jul 2016 16:37:14 +0200 Original-Received: from localhost ([::1]:38831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJM2i-0002U9-T2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jul 2016 10:37:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJM2d-0002Tr-Cl for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 10:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJM2Y-0005nr-DO for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 10:37:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJM2Y-0005nn-9Z for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 10:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bJM2Y-0000ue-5W for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 10:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jul 2016 14:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23884 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14674702073483 (code B ref -1); Sat, 02 Jul 2016 14:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jul 2016 14:36:47 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120288 Archived-At: 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'