GNU bug report logs -
#16106
24.3.50; doc of `replace-match'
Previous Next
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
> > 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.
Most things in Emacs and Lisp in general are zero-based.
It is not obvious that this is one-based. And Oth and zeroth
make as much sense as 1th and oneth. If counting is zero-based
then the 0th element is exactly that: the entry that is indexed
by the number zero.
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.