From: Damien Collard <damien.collard@distfp.net>
To: emacs-devel@gnu.org
Subject: Re: Regexp error scan (March 26)
Date: Wed, 27 Mar 2019 16:28:22 +0100 [thread overview]
Message-ID: <m2h8bo49rd.fsf@gandi.net> (raw)
In-Reply-To: <045E4E1D-EF0B-41A8-809D-48F38AABD602@acm.org> ("Mattias \=\?utf-8\?Q\?Engdeg\=C3\=A5rd\=22's\?\= message of "Wed, 27 Mar 2019 15:41:06 +0100")
On Mer, mar 27 2019, Mattias Engdegård wrote:
> 27 mars 2019 kl. 15.36 skrev Stefan Monnier <monnier@iro.umontreal.ca>:
>>
>>>> (regexp-opt-charset (append erc-lurker-ignore-chars nil))
>>
>> Why do we need the append-nil thingy?
>> Does regexp-opt-charset modify its argument by side-effect?
>
> No, it's a way to convert a string to a list of characters which is what regexp-opt-charset expects.
> (mapcar #'identity ...) would also work, but this is a little shorter.
Hello,
Why not use `string-to-list` then? It is implemented as (append ... nil)
and would be much clearer imho.
Damien
next prev parent reply other threads:[~2019-03-27 15:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-26 17:38 Regexp error scan (March 26) Mattias Engdegård
2019-03-27 2:10 ` Paul Eggert
2019-03-27 3:43 ` Basil L. Contovounesios
2019-03-27 9:14 ` Mattias Engdegård
2019-03-27 13:55 ` Andy Moreton
2019-03-27 14:36 ` Stefan Monnier
2019-03-27 14:41 ` Mattias Engdegård
2019-03-27 14:45 ` Stefan Monnier
2019-03-27 14:49 ` Noam Postavsky
2019-03-27 15:45 ` Mattias Engdegård
2019-03-27 15:48 ` Stefan Monnier
2019-03-27 18:50 ` Paul Eggert
2019-03-27 15:28 ` Damien Collard [this message]
2019-03-27 12:09 ` Mattias Engdegård
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=m2h8bo49rd.fsf@gandi.net \
--to=damien.collard@distfp.net \
--cc=emacs-devel@gnu.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.