From: Eli Zaretskii <eliz@gnu.org>
To: "Mattias Engdegård" <mattiase@acm.org>
Cc: 34596-done@debbugs.gnu.org
Subject: bug#34596: Typo in regex-opt doc string
Date: Fri, 22 Feb 2019 10:12:59 +0200 [thread overview]
Message-ID: <83d0nkfdh0.fsf@gnu.org> (raw)
In-Reply-To: <48ED042C-46BD-4233-9423-92EADB8494B0@acm.org> (message from Mattias Engdegård on Wed, 20 Feb 2019 23:10:52 +0100)
> From: Mattias Engdegård <mattiase@acm.org>
> 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.
prev parent reply other threads:[~2019-02-22 8:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-20 22:10 bug#34596: Typo in regex-opt doc string Mattias Engdegård
2019-02-22 8:12 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83d0nkfdh0.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=34596-done@debbugs.gnu.org \
--cc=mattiase@acm.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.