From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mandar Mitra Newsgroups: gmane.emacs.bugs Subject: bug#36241: 26.2; documentation error in elisp/Regexp-Functions node Date: Sun, 16 Jun 2019 14:21:46 +0530 Message-ID: <20190616085146.pnilljojd2mkut3d@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="169470"; mail-complaints-to="usenet@blaine.gmane.org" To: 36241@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 16 10:53:31 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcQuo-000hoE-FT for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 10:53:30 +0200 Original-Received: from localhost ([::1]:38196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcQug-0004HJ-2e for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 04:53:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34236) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcQuN-0004HD-So for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:53:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcQuM-0002IE-RV for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcQuM-0002Hu-MS for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hcQuM-0008A9-JX for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 04:53:02 -0400 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156067513231305 (code B ref -1); Sun, 16 Jun 2019 08:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jun 2019 08:52:12 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:160656 Archived-At: 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''