emacs-devel
[Top][All Lists]
Advanced

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

Re: Can we add a delete-match function to subr(-x).el?


From: Stefan Monnier
Subject: Re: Can we add a delete-match function to subr(-x).el?
Date: Sat, 25 Jan 2020 10:04:10 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>       (when (consp (match-data))

This allocates N cons cells just to test if there's something and in
practice there's basically *always* something (the match data keeps
info about the last successful match, so even if your last match was
a failure, `match-data` won't be nil]).


        Stefan




reply via email to

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