From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34596: Typo in regex-opt doc string Date: Fri, 22 Feb 2019 10:12:59 +0200 Message-ID: <83d0nkfdh0.fsf@gnu.org> References: <48ED042C-46BD-4233-9423-92EADB8494B0@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="9116"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34596-done@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 22 09:17:37 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gx61Y-0002Fa-6v for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Feb 2019 09:17:36 +0100 Original-Received: from localhost ([127.0.0.1]:46581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gx61X-00084r-6B for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Feb 2019 03:17:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gx5yA-0005js-HL for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2019 03:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gx5y9-0000FP-OJ for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2019 03:14:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34024) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gx5y6-0000Cf-AB for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2019 03:14:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gx5y6-0002uH-2n for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2019 03:14:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Feb 2019 08:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 34596 X-GNU-PR-Package: emacs Mail-Followup-To: 34596@debbugs.gnu.org, eliz@gnu.org, mattiase@acm.org Original-Received: via spool by 34596-done@debbugs.gnu.org id=D34596.155082319111100 (code D ref 34596); Fri, 22 Feb 2019 08:14:01 +0000 Original-Received: (at 34596-done) by debbugs.gnu.org; 22 Feb 2019 08:13:11 +0000 Original-Received: from localhost ([127.0.0.1]:47567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gx5xG-0002sw-5O for submit@debbugs.gnu.org; Fri, 22 Feb 2019 03:13:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gx5xE-0002sk-JM for 34596-done@debbugs.gnu.org; Fri, 22 Feb 2019 03:13:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gx5x9-0007iK-BD; Fri, 22 Feb 2019 03:13:03 -0500 Original-Received: from [176.228.60.248] (port=3495 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gx5x4-0008GY-VR; Fri, 22 Feb 2019 03:13:01 -0500 In-reply-to: <48ED042C-46BD-4233-9423-92EADB8494B0@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Wed, 20 Feb 2019 23:10:52 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:155633 Archived-At: > From: Mattias EngdegÄrd > Date: Wed, 20 Feb 2019 23:10:52 +0100 > > (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) > (mapconcat 'regexp-quote strings "\\|") > (cdr paren)))) > > `paren' should be `parens' in the last three lines. Thanks, fixed.