emacs-devel
[Top][All Lists]
Advanced

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

Re: master 13fe8a2: Fix rare undefined behaviors in replace-match


From: Stefan Monnier
Subject: Re: master 13fe8a2: Fix rare undefined behaviors in replace-match
Date: Sat, 03 Aug 2019 17:02:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> +    xsignal2 (Qerror,
>> +              build_string ("replace-match subexpression does not exist"),
>> +              subexp);
>
> This is probably a better error to signal here for this error, but it
> possibly changes the behaviour.  If somebody previously had
> condition-case'd this for args-out-of-range, then they'll get a new
> error signalled now (which is why I kept that signal)...

One way out is to `define-error` a new error for that, which has
`args-out-of-range` as a parent.


        Stefan




reply via email to

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