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: Damien Collard
Subject: Re: Regexp error scan (March 26)
Date: Wed, 27 Mar 2019 16:28:22 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin)

On Mer, mar 27 2019, Mattias Engdegård wrote:

> 27 mars 2019 kl. 15.36 skrev Stefan Monnier <address@hidden>:
>> 
>>>> (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



reply via email to

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