GNU bug report logs - #16106
24.3.50; doc of `replace-match'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Tue, 10 Dec 2013 23:57:01 UTC

Severity: minor

Found in version 24.3.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 16106 <at> debbugs.gnu.org
Subject: bug#16106: 24.3.50; doc of `replace-match'
Date: Fri, 07 Feb 2014 18:54:41 -0800
Drew Adams <drew.adams <at> oracle.com> writes:

> State (in doc string and Elisp manual) that N in \N is not just "a
> digit" but a digit from 1 through 9.  Make clear that in "Nth
> subexpression", N is one-based, not zero-based.

I don't think that makes any sense.  The wording is:

  `\N' means substitute what matched the Nth `\(...\)'.
       If Nth parens didn't match, substitute nothing.

I can't see anybody interpreting Nth as having "zeroth" as a valid
meaning.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




This bug report was last modified 11 years and 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.