From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23884: 24.5; `(query)-replace-regexp` doc: be clearer about \N Date: Sat, 02 Jul 2016 18:06:09 +0300 Message-ID: <83lh1krsf2.fsf@gnu.org> References: <05121246-59dd-4ebe-b3c7-7b27ed6167fa@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1467472049 18931 80.91.229.3 (2 Jul 2016 15:07:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jul 2016 15:07:29 +0000 (UTC) Cc: 23884-done@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 02 17:07:18 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 1bJMVq-0008Cm-8C for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jul 2016 17:07:18 +0200 Original-Received: from localhost ([::1]:38930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJMVm-0003og-BD for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jul 2016 11:07:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJMVg-0003nd-1T for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 11:07:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJMVa-0003pD-L1 for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 11:07:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJMVa-0003p4-Ih for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 11:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bJMVa-0001cH-Ex for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2016 11:07:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jul 2016 15:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 23884 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 23884@debbugs.gnu.org, eliz@gnu.org, drew.adams@oracle.com Original-Received: via spool by 23884-done@debbugs.gnu.org id=D23884.14674720066187 (code D ref 23884); Sat, 02 Jul 2016 15:07:02 +0000 Original-Received: (at 23884-done) by debbugs.gnu.org; 2 Jul 2016 15:06:46 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 In-reply-to: <05121246-59dd-4ebe-b3c7-7b27ed6167fa@default> (message from Drew Adams on Sat, 2 Jul 2016 07:36:23 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:120291 Archived-At: > 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.