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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16106 in the body.
You can then email your comments to 16106 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16106
; Package
emacs
.
(Tue, 10 Dec 2013 23:57:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 10 Dec 2013 23:57:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
In GNU Emacs 24.3.50.2 (i686-pc-mingw32)
of 2013-11-28 on LEG570
Bzr revision: 115271 rgm <at> gnu.org-20131128203155-qjc1xsp19z2k64b2
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16106
; Package
emacs
.
(Sat, 08 Feb 2014 02:57:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 16106 <at> debbugs.gnu.org (full text, mbox):
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/
bug closed, send any further explanations to
16106 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 08 Feb 2014 02:57:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16106
; Package
emacs
.
(Sat, 08 Feb 2014 03:34:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 16106 <at> debbugs.gnu.org (full text, mbox):
> > 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16106
; Package
emacs
.
(Mon, 10 Feb 2014 06:57:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 16106 <at> debbugs.gnu.org (full text, mbox):
> 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.
Let me put it differently: Is there a good reason NOT to say that
"N is a digit from 1 through 9"?
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 10 Mar 2014 11:24:06 GMT)
Full text and
rfc822 format available.
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.