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: Mattias Engdegård
Subject: Re: Regexp error scan (March 26)
Date: Wed, 27 Mar 2019 15:41:06 +0100

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.




reply via email to

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