From unknown Fri Jun 13 11:51:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36241: 26.2; documentation error in elisp/Regexp-Functions node Resent-From: Mandar Mitra Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2019 08:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 36241@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156067513231305 (code B ref -1); Sun, 16 Jun 2019 08:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jun 2019 08:52:12 +0000 Received: from localhost ([127.0.0.1]:39684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcQtY-00088q-5L for submit@debbugs.gnu.org; Sun, 16 Jun 2019 04:52:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:55022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcQtV-00088i-UV for submit@debbugs.gnu.org; Sun, 16 Jun 2019 04:52:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34060) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcQtU-0004EP-7k for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:52:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcQtP-00019s-7V for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:52:05 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:38703) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcQtL-00013D-RU for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:52:01 -0400 Received: by mail-pg1-x52e.google.com with SMTP id v11so4062370pgl.5 for ; Sun, 16 Jun 2019 01:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=K6ZpZlEKY00eyjR084FtMtkRGPlIcOHTgYBX5A7DJzQ=; b=ERq738CBu4m8rKJPm231A+r2cttdmDRpgzm1UGreCwjc7RGS9mhsqpKzTAC23Q76gB JCweUJf8V51M2eC71O7Z4RqFMo+blS2NH2VHKArXaNDb6gc+c5L2Ij65kcMlcR7X9rPX Wf0lVFuVhdVWVGvwMkqRy+nC/crmY2rcxPn0ERgpr3N88kSy84b3Nw3BseVYl4SFuFpy BF3Tm3k8ysTyMAY95tg8IEzgfrfyQVBG9Vb2t2j9UjVw7BcSDLnNmfminRjaTweWjUxD vVzNdxKMHOKb75WrxsmRKjkLd0OClAnnDifVK8VStoCEPPFjKjy4Sm+vUa+A4Oyj93eU ZpCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=K6ZpZlEKY00eyjR084FtMtkRGPlIcOHTgYBX5A7DJzQ=; b=T0bbC1/xiKCTZ7xA6qUqc6v5XLSPVeyB+69OpI3O6UFoyfVp7z6dFJHZZ8ZiLQ8InO EzQ1fFEO0/pSDJzE/Ea03kFWx4X7k3V1Ap70joEFinanptDi8V5WEH5dtU6k9tHduzHq 6IfVTC7wBnatSTUowHcG3roTpmUQvfizPmpVGUFtk1NZlwnsaF7zYchk5hHydu1Tq4lw lLlQIfYFEWZNWp3DEEDAl0cKgI/8FpwAJdR/95aWtz9xtLmtJNb96OqVihpeycr3MUZH PiT7Zw19JGPkHOpA5KKWyS3IOJl7GpP8fhw0lIKZAirlGUSzFPuykMLN1hrZqPRBsVuq hT4A== X-Gm-Message-State: APjAAAXhBdXfVhrq812XwMvBy7ikCxR5nVRKcdQzXizOyKqH2L5+GdMQ 4NJAS4OKZu64dVabCCzfq3dpakOw X-Google-Smtp-Source: APXvYqwuyvD6k9uOKm3U7Klw+xkw98Wrq6if+5xRzbBbjRweiU0LDThimqLgehP9LEmwvY6480UxFw== X-Received: by 2002:a62:fb10:: with SMTP id x16mr109109350pfm.112.1560675115007; Sun, 16 Jun 2019 01:51:55 -0700 (PDT) Received: from localhost ([182.66.45.250]) by smtp.gmail.com with ESMTPSA id g9sm6898969pgs.78.2019.06.16.01.51.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 Jun 2019 01:51:53 -0700 (PDT) Date: Sun, 16 Jun 2019 14:21:46 +0530 From: Mandar Mitra Message-ID: <20190616085146.pnilljojd2mkut3d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52e X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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'' From unknown Fri Jun 13 11:51:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mandar Mitra Subject: bug#36241: closed (Re: bug#36241: 26.2; documentation error in elisp/Regexp-Functions node) Message-ID: References: <20190616085146.pnilljojd2mkut3d@gmail.com> X-Gnu-PR-Message: they-closed 36241 X-Gnu-PR-Package: emacs Reply-To: 36241@debbugs.gnu.org Date: Sun, 16 Jun 2019 09:32:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1560677521-3029-1" This is a multi-part message in MIME format... ------------=_1560677521-3029-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36241: 26.2; documentation error in elisp/Regexp-Functions node which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36241@debbugs.gnu.org. --=20 36241: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36241 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1560677521-3029-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36241-done) by debbugs.gnu.org; 16 Jun 2019 09:31:32 +0000 Received: from localhost ([127.0.0.1]:39716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcRVc-0000m6-Gs for submit@debbugs.gnu.org; Sun, 16 Jun 2019 05:31:32 -0400 Received: from mail-qt1-f177.google.com ([209.85.160.177]:41720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcRVa-0000lu-JF for 36241-done@debbugs.gnu.org; Sun, 16 Jun 2019 05:31:31 -0400 Received: by mail-qt1-f177.google.com with SMTP id d17so2578450qtj.8 for <36241-done@debbugs.gnu.org>; Sun, 16 Jun 2019 02:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VhEJhFteUFD4yWXIIllhVdz5Ll3+IEljFL8t40wHoAM=; b=j9f0Q88hXemaJ767CN/hk3933ul9zy8cv/z2B0taCoD3LlyZ5KG+xrKsP1J0n8YTCc D5HFc4RDkuZ/NNvnz507UQOZICqNy+5iR/Ogh2xATGEfU1BYYNJsV9P6kClnEqPnyX/9 BMrrrFX0Sa8iZImRv8In3ktE14alRlaH4Id4pLOOsMenc4C9XH28nD4Xz+Nv1PZs1AUZ ODi5vJBElrY2qFzFc8W+EQbK9+3xy5LPLXwE7ryIIDATE/ULBj7O6UW1XV7ozNmE4IaJ dzq9aypcfjloYLKm99VHW19vjZL49ZxG134Wyn7E0BcTKaaQTx3+DYy/MCkWCbd8hMAU orcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VhEJhFteUFD4yWXIIllhVdz5Ll3+IEljFL8t40wHoAM=; b=WXVojz1Rhj5smi6BiJplwMiIfcRJgse54ZDUxRiHvrLo2ZamCTmfz6V/bu2BygeNE1 9HEH0dCg2X0oqbOC911Ni2JqldEbYPhfZ4bxg4uAs/FXPyQtH/4xja8VBfmkWSypb5Ln bHVzc6GipmYkPAQR81tfvV8j3u3qo4zh0Qb3LngTFhpPNi8nF2xL4Utwl7RknfXLmhem KJYRvcWgpMnM4DYPLqJ5ESlobSQk+to1dBbKSJulHA4xfAPivHWMELOM+jpo7OSeXle3 n29l0jaj6m2EUZsS29Kl9heOgvunrb0qmSO5cKuRdVBF9YiCMP3AJLZY15tZYRbZbHdw 6H6g== X-Gm-Message-State: APjAAAUWijcIDDS8EwjW4GUbuvRues82iPKYZjaMCYFdAYJYL1MSs2kn PUHuG33++9qmqEfTwen+n6dnX/RVbP8sH20P1SM= X-Google-Smtp-Source: APXvYqzDqQjbOKl4IIMAGiR+gR/skQFFnBJ4JcQSfgvkbtY7RqbA8sSjI4MtroeOg8S8VMbzOqic+j36ffcZ5dRvrzA= X-Received: by 2002:ac8:41d1:: with SMTP id o17mr14737085qtm.17.1560677485081; Sun, 16 Jun 2019 02:31:25 -0700 (PDT) MIME-Version: 1.0 References: <20190616085146.pnilljojd2mkut3d@gmail.com> In-Reply-To: <20190616085146.pnilljojd2mkut3d@gmail.com> From: Juanma Barranquero Date: Sun, 16 Jun 2019 11:30:49 +0200 Message-ID: Subject: Re: bug#36241: 26.2; documentation error in elisp/Regexp-Functions node To: Mandar Mitra Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36241-done Cc: 36241-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, Jun 16, 2019 at 10:53 AM Mandar Mitra 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/ ------------=_1560677521-3029-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Jun 2019 08:52:12 +0000 Received: from localhost ([127.0.0.1]:39684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcQtY-00088q-5L for submit@debbugs.gnu.org; Sun, 16 Jun 2019 04:52:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:55022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcQtV-00088i-UV for submit@debbugs.gnu.org; Sun, 16 Jun 2019 04:52:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34060) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcQtU-0004EP-7k for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:52:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcQtP-00019s-7V for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:52:05 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:38703) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcQtL-00013D-RU for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:52:01 -0400 Received: by mail-pg1-x52e.google.com with SMTP id v11so4062370pgl.5 for ; Sun, 16 Jun 2019 01:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=K6ZpZlEKY00eyjR084FtMtkRGPlIcOHTgYBX5A7DJzQ=; b=ERq738CBu4m8rKJPm231A+r2cttdmDRpgzm1UGreCwjc7RGS9mhsqpKzTAC23Q76gB JCweUJf8V51M2eC71O7Z4RqFMo+blS2NH2VHKArXaNDb6gc+c5L2Ij65kcMlcR7X9rPX Wf0lVFuVhdVWVGvwMkqRy+nC/crmY2rcxPn0ERgpr3N88kSy84b3Nw3BseVYl4SFuFpy BF3Tm3k8ysTyMAY95tg8IEzgfrfyQVBG9Vb2t2j9UjVw7BcSDLnNmfminRjaTweWjUxD vVzNdxKMHOKb75WrxsmRKjkLd0OClAnnDifVK8VStoCEPPFjKjy4Sm+vUa+A4Oyj93eU ZpCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=K6ZpZlEKY00eyjR084FtMtkRGPlIcOHTgYBX5A7DJzQ=; b=T0bbC1/xiKCTZ7xA6qUqc6v5XLSPVeyB+69OpI3O6UFoyfVp7z6dFJHZZ8ZiLQ8InO EzQ1fFEO0/pSDJzE/Ea03kFWx4X7k3V1Ap70joEFinanptDi8V5WEH5dtU6k9tHduzHq 6IfVTC7wBnatSTUowHcG3roTpmUQvfizPmpVGUFtk1NZlwnsaF7zYchk5hHydu1Tq4lw lLlQIfYFEWZNWp3DEEDAl0cKgI/8FpwAJdR/95aWtz9xtLmtJNb96OqVihpeycr3MUZH PiT7Zw19JGPkHOpA5KKWyS3IOJl7GpP8fhw0lIKZAirlGUSzFPuykMLN1hrZqPRBsVuq hT4A== X-Gm-Message-State: APjAAAXhBdXfVhrq812XwMvBy7ikCxR5nVRKcdQzXizOyKqH2L5+GdMQ 4NJAS4OKZu64dVabCCzfq3dpakOw X-Google-Smtp-Source: APXvYqwuyvD6k9uOKm3U7Klw+xkw98Wrq6if+5xRzbBbjRweiU0LDThimqLgehP9LEmwvY6480UxFw== X-Received: by 2002:a62:fb10:: with SMTP id x16mr109109350pfm.112.1560675115007; Sun, 16 Jun 2019 01:51:55 -0700 (PDT) Received: from localhost ([182.66.45.250]) by smtp.gmail.com with ESMTPSA id g9sm6898969pgs.78.2019.06.16.01.51.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 Jun 2019 01:51:53 -0700 (PDT) Date: Sun, 16 Jun 2019 14:21:46 +0530 From: Mandar Mitra To: bug-gnu-emacs@gnu.org Subject: 26.2; documentation error in elisp/Regexp-Functions node Message-ID: <20190616085146.pnilljojd2mkut3d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52e X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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'' ------------=_1560677521-3029-1-- From unknown Fri Jun 13 11:51:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36241: 26.2; documentation error in elisp/Regexp-Functions node Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2019 09:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36241 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mandar Mitra Cc: 36241@debbugs.gnu.org Received: via spool by 36241-submit@debbugs.gnu.org id=B36241.15606777723500 (code B ref 36241); Sun, 16 Jun 2019 09:37:01 +0000 Received: (at 36241) by debbugs.gnu.org; 16 Jun 2019 09:36:12 +0000 Received: from localhost ([127.0.0.1]:39728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcRa8-0000uO-DR for submit@debbugs.gnu.org; Sun, 16 Jun 2019 05:36:12 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:36157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcRa6-0000uB-QU for 36241@debbugs.gnu.org; Sun, 16 Jun 2019 05:36:11 -0400 Received: by mail-qk1-f195.google.com with SMTP id g18so4485724qkl.3 for <36241@debbugs.gnu.org>; Sun, 16 Jun 2019 02:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=79YnxCh42puYZ59ek7C3FzAuejGGiGyUOs8k2nHUzlE=; b=jG5AEg0Ef3OQ4SGl+bwZnmXqsLrM7aHMj29Y+sXsNihCaQzaCT+nCtOa9mSMXWthxy +q1eYn4OropRPF+LdaWvprucb55VOIj4Im0aYOwfG87/4uRrAfvldXc5VaJUvM81xFj0 Ctlg6XTPrL+3oLaMakzAQueeEtm0mppSj6rd/FmCxKVJ9GkX8T+WeAJQSM/pDGdrG8U6 PzH9l7bA68duehWd8caYFB+9VpdRzE2rALY11qVwNKs1z7OaKS86Iite48ZMetQ8V2Me oAepg0qMR61WZb5Eghb8z/2pRsAcLs+Tux4OXKIGsS/wnUdFiO8wmy19ga/MBAAiuYp9 DkJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=79YnxCh42puYZ59ek7C3FzAuejGGiGyUOs8k2nHUzlE=; b=kmZrQZKbkHfbz78t4jdwMLW1T+NSFIcyTLdMurmvnsUxdaWNqiabudweENy4ayrtvc onypJDoCoshiqt0QA1TaYM7xDALvputYTllgzIq8dirZ8j1DmEJFlvVdZQqcgDs2Isr4 4NoMlFWFE6bzHB+xsqwc0qQU59qPl1/LnmOdffGwxCI9Bw3B5NTy4NIrjSHKk0SwYvBO JnVHIf/e58VmP5xyp/MNMrKK97BUI2zNf2No1RsDxxFkfpf42VQqviOsDqhqqe3f12kW M4hPpJx3mWqda9Rfn2zhG9nGYLEflBfCSMgJ/w/jsXiNrPNtAXEqnS4xOIQ3ec4g1Hen deVw== X-Gm-Message-State: APjAAAXZpJ5G5zOwtkjGwggg4oKkCtANnmu0NEYAwc5nf4e/xj6zVvk1 GHAUMbYRGaGPHkJoPKEFWvw+oGhGm/mDelDwUkfH/CsJ X-Google-Smtp-Source: APXvYqzuJrNbpdxwpTYBXMFjs0X+xHJwSOQbu9HcsB1Hp1HcXlmSXGHJX0JpmYe+nTCMQikh3ktKmFgOMUVZVheIi7g= X-Received: by 2002:a37:6587:: with SMTP id z129mr51534494qkb.295.1560677765333; Sun, 16 Jun 2019 02:36:05 -0700 (PDT) MIME-Version: 1.0 References: <20190616085146.pnilljojd2mkut3d@gmail.com> In-Reply-To: From: Juanma Barranquero Date: Sun, 16 Jun 2019 11:35:30 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Sorry, my bad. You were talking about the info documentation, which is indeed not fixed, not about the function's docstring (which is). From unknown Fri Jun 13 11:51:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mandar Mitra Subject: bug#36241: closed (Re: bug#36241: 26.2; documentation error in elisp/Regexp-Functions node) Message-ID: References: <20190616085146.pnilljojd2mkut3d@gmail.com> X-Gnu-PR-Message: they-closed 36241 X-Gnu-PR-Package: emacs Reply-To: 36241@debbugs.gnu.org Date: Sun, 16 Jun 2019 09:56:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1560678961-13535-1" This is a multi-part message in MIME format... ------------=_1560678961-13535-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36241: 26.2; documentation error in elisp/Regexp-Functions node which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36241@debbugs.gnu.org. --=20 36241: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36241 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1560678961-13535-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36241-done) by debbugs.gnu.org; 16 Jun 2019 09:55:07 +0000 Received: from localhost ([127.0.0.1]:39806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcRsQ-0003Uz-UN for submit@debbugs.gnu.org; Sun, 16 Jun 2019 05:55:07 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:42398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcRsO-0003UP-Tc for 36241-done@debbugs.gnu.org; Sun, 16 Jun 2019 05:55:05 -0400 Received: by mail-qk1-f171.google.com with SMTP id b18so4465188qkc.9 for <36241-done@debbugs.gnu.org>; Sun, 16 Jun 2019 02:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vml1T0OE8nW5RBzaSigYrWsav9zAs0FBzQv6B9R2hUY=; b=tgazKYeV1NVLQf6F4XHztDUWBAvM45LVHH9KdvMzKPlx3M+QyvI8xZY1VpJnFMg9gq EvbEnV0uK1mZ8kMXrTHxhAN1E00PC09rrw2oA7MVVQGZfc57R1/tSsS1ADYEC8eLO0V2 6FpQsgP21xV/KgYSQae9caBUpWQIom6ozMROH+GhLqhwciJuGEw+z18Mjudwb9uDnCng 3GodD/yjLOzZlOabzn1HPTuRz1ZAjai/yyjDLANv/qPJOWfEhMUri7peVJh+zxeJudbs 2Iya0hYd0djrqGPUnOPxAUm0+tjeooqV2rdIcBJmZRAaMbItX0bMIBVN0eLnXzXenONQ SG8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vml1T0OE8nW5RBzaSigYrWsav9zAs0FBzQv6B9R2hUY=; b=OB+Qybk02nVBrVEtelK3q3WnhWhQFSrJQF6jDEOUABMtPjwg6pMFmRer1JSla3fz3S hdGC0MbJDIYnSmbWfKpuf+LRqJ/B3WBLL6oe9kpd7fwNke3E5YnmyWWKVOnU12ZnhKp2 zD+N1Np9Q57fN+OwRd5gKWbG+6A+Kttdpv/K0+Ei/OsJwOQqxKsIJ2a+9HnQ55cCR5YE k0GC8+G3FlOs+ghCBG5s0FjRmh0bc5F3wbTUhXH2+aUafN0tl59/a3J2+lc2LWC0PMPE otRrrCstKoaKWkhZyWxWIH7suXSKS0wzah0XHDNf4pJfVYMm6rvG5ffaDzJ+0JSC4Dwq JS+A== X-Gm-Message-State: APjAAAXaNt6ZjUdFWCYUTp8axRoXQyrujVNf5gl4G5sNB4KD5HTzuGJ0 MiYz6dNvha1wb+Q+J6UM89ku0bIibAr4tkq7OQc= X-Google-Smtp-Source: APXvYqztKZRD0YwKhO4GhFMUCgo8llcGh4SxmC8uhDf0VpPLrexp8VlHHzEOal9DB6ojB4g+JV7NZ90xEoq+i1LZ+Io= X-Received: by 2002:a05:620a:119a:: with SMTP id b26mr65305579qkk.332.1560678899178; Sun, 16 Jun 2019 02:54:59 -0700 (PDT) MIME-Version: 1.0 References: <20190616085146.pnilljojd2mkut3d@gmail.com> In-Reply-To: From: Juanma Barranquero Date: Sun, 16 Jun 2019 11:54:24 +0200 Message-ID: Subject: Re: bug#36241: 26.2; documentation error in elisp/Regexp-Functions node To: Mandar Mitra Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36241-done Cc: 36241-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ok, I backported the fix already in the master branch, so it should be fixed now. Thanks ------------=_1560678961-13535-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Jun 2019 08:52:12 +0000 Received: from localhost ([127.0.0.1]:39684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcQtY-00088q-5L for submit@debbugs.gnu.org; Sun, 16 Jun 2019 04:52:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:55022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcQtV-00088i-UV for submit@debbugs.gnu.org; Sun, 16 Jun 2019 04:52:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34060) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcQtU-0004EP-7k for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:52:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcQtP-00019s-7V for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:52:05 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:38703) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcQtL-00013D-RU for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:52:01 -0400 Received: by mail-pg1-x52e.google.com with SMTP id v11so4062370pgl.5 for ; Sun, 16 Jun 2019 01:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=K6ZpZlEKY00eyjR084FtMtkRGPlIcOHTgYBX5A7DJzQ=; b=ERq738CBu4m8rKJPm231A+r2cttdmDRpgzm1UGreCwjc7RGS9mhsqpKzTAC23Q76gB JCweUJf8V51M2eC71O7Z4RqFMo+blS2NH2VHKArXaNDb6gc+c5L2Ij65kcMlcR7X9rPX Wf0lVFuVhdVWVGvwMkqRy+nC/crmY2rcxPn0ERgpr3N88kSy84b3Nw3BseVYl4SFuFpy BF3Tm3k8ysTyMAY95tg8IEzgfrfyQVBG9Vb2t2j9UjVw7BcSDLnNmfminRjaTweWjUxD vVzNdxKMHOKb75WrxsmRKjkLd0OClAnnDifVK8VStoCEPPFjKjy4Sm+vUa+A4Oyj93eU ZpCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=K6ZpZlEKY00eyjR084FtMtkRGPlIcOHTgYBX5A7DJzQ=; b=T0bbC1/xiKCTZ7xA6qUqc6v5XLSPVeyB+69OpI3O6UFoyfVp7z6dFJHZZ8ZiLQ8InO EzQ1fFEO0/pSDJzE/Ea03kFWx4X7k3V1Ap70joEFinanptDi8V5WEH5dtU6k9tHduzHq 6IfVTC7wBnatSTUowHcG3roTpmUQvfizPmpVGUFtk1NZlwnsaF7zYchk5hHydu1Tq4lw lLlQIfYFEWZNWp3DEEDAl0cKgI/8FpwAJdR/95aWtz9xtLmtJNb96OqVihpeycr3MUZH PiT7Zw19JGPkHOpA5KKWyS3IOJl7GpP8fhw0lIKZAirlGUSzFPuykMLN1hrZqPRBsVuq hT4A== X-Gm-Message-State: APjAAAXhBdXfVhrq812XwMvBy7ikCxR5nVRKcdQzXizOyKqH2L5+GdMQ 4NJAS4OKZu64dVabCCzfq3dpakOw X-Google-Smtp-Source: APXvYqwuyvD6k9uOKm3U7Klw+xkw98Wrq6if+5xRzbBbjRweiU0LDThimqLgehP9LEmwvY6480UxFw== X-Received: by 2002:a62:fb10:: with SMTP id x16mr109109350pfm.112.1560675115007; Sun, 16 Jun 2019 01:51:55 -0700 (PDT) Received: from localhost ([182.66.45.250]) by smtp.gmail.com with ESMTPSA id g9sm6898969pgs.78.2019.06.16.01.51.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 Jun 2019 01:51:53 -0700 (PDT) Date: Sun, 16 Jun 2019 14:21:46 +0530 From: Mandar Mitra To: bug-gnu-emacs@gnu.org Subject: 26.2; documentation error in elisp/Regexp-Functions node Message-ID: <20190616085146.pnilljojd2mkut3d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52e X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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'' ------------=_1560678961-13535-1--