GNU bug report logs -
#36241
26.2; documentation error in elisp/Regexp-Functions node
Previous Next
Reported by: Mandar Mitra <mandar.mitra <at> gmail.com>
Date: Sun, 16 Jun 2019 08:53:02 UTC
Severity: normal
Found in version 26.2
Done: Juanma Barranquero <lekktu <at> gmail.com>
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 36241 in the body.
You can then email your comments to 36241 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#36241
; Package
emacs
.
(Sun, 16 Jun 2019 08:53:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mandar Mitra <mandar.mitra <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 16 Jun 2019 08:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The documentation under "Function: regexp-opt" says:
The resulting regexp of regexp-opt is equivalent to but usually more efficient than that of a simplified version:
(defun simplified-regexp-opt (strings &optional paren)
(let ((parens
(cond
((stringp paren) (cons paren "\\)"))
((eq paren 'words) '("\\<\\(" . "\\)\\>"))
((eq paren 'symbols) '("\\_<\\(" . "\\)\\_>"))
((null paren) '("\\(?:" . "\\)"))
(t '("\\(" . "\\)")))))
(concat (car paren) ;; BUG: should be parens, not paren?
(mapconcat 'regexp-quote strings "\\|")
(cdr paren)))) ;; BUG: should be parens, not paren?
---------------------------------------------------------------------------
The expressions on the third last line and the last line should be (car parens) and (cdr parens), no?
---------------------------------------------------------------------------
In GNU Emacs 26.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
of 2019-04-13 built on lgw01-amd64-060
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Linux Mint 19 Tara
Recent messages:
Describe-Bindings...
Type M-x delete-other-windows to delete the help window, C-M-v to scroll help.
Quit [2 times]
Describe-Function...
No library info.el in search path
Type M-x delete-other-windows to delete the help window.
Fill column set to 75 (was 70)
Invalid face reference: info-menu-5 [3 times]
Mark set
Invalid face reference: info-menu-5 [14 times]
Configured using:
'configure --build=x86_64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib --program-suffix=26 --with-modules --with-file-notification=inotify --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-xwidgets --with-lcms2 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs26-CYbeHB/emacs26-26.2~1.gitfd1b34b=. -fstack-protector-strong -Wformat -Werror=format-security -no-pie' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -no-pie''
Reply sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
You have taken responsibility.
(Sun, 16 Jun 2019 09:32:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Mandar Mitra <mandar.mitra <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 16 Jun 2019 09:32:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 36241-done <at> debbugs.gnu.org (full text, mbox):
On Sun, Jun 16, 2019 at 10:53 AM Mandar Mitra <mandar.mitra <at> gmail.com> wrote:
> The expressions on the third last line and the last line should be (car parens) and (cdr parens), no?
Yes, thanks.
It was fixed in the sources a while ago and it's already correct in
26.2.90, the current pretest release for 26.3.
You can download a source tarball of 26.2.90 here:
https://alpha.gnu.org/gnu/emacs/pretest/
Did not alter fixed versions and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 16 Jun 2019 09:34:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#36241
; Package
emacs
.
(Sun, 16 Jun 2019 09:37:01 GMT)
Full text and
rfc822 format available.
Message #15 received at 36241 <at> debbugs.gnu.org (full text, mbox):
Sorry, my bad.
You were talking about the info documentation, which is indeed not
fixed, not about the function's docstring (which is).
Reply sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
You have taken responsibility.
(Sun, 16 Jun 2019 09:56:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Mandar Mitra <mandar.mitra <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 16 Jun 2019 09:56:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 36241-done <at> debbugs.gnu.org (full text, mbox):
Ok, I backported the fix already in the master branch, so it should be
fixed now.
Thanks
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 14 Jul 2019 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 335 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.