emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regexp error scan (March 26)


From: Stefan Monnier
Subject: Re: Regexp error scan (March 26)
Date: Wed, 27 Mar 2019 10:45:58 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>>>> (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.

Ah, good.  But it would deserve a comment,


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]