GNU bug report logs -
#20066
24.4; should-error and cl-assert
Previous Next
Reported by: Leo Liu <sdl.web <at> gmail.com>
Date: Mon, 9 Mar 2015 08:07:02 UTC
Severity: normal
Found in version 24.4
Done: Leo Liu <sdl.web <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 20066 <at> debbugs.gnu.org (full text, mbox):
On Mon, Mar 09 2015, Leo Liu wrote:
> I just compiled emacs 25.0.50 from git and I have immediately noticed
> the following difference:
>
> 1. (should-error (error "yes"))
> 2. (should-error (cl-assert nil t))
>
> Test 1 succeeds but test 2 fails. In emacs 24.4, both tests succeed.
> Could someone investigate what have caused this incompatibility?
commit 61b4c22c6eba96718327a0d208a8492d8bad76e0
Author: Stefan Monnier <monnier <at> iro.umontreal.ca>
Date: Sat Feb 14 00:46:29 2015 -0500
[...]
(cl--assertion-failed): New function.
+(defun cl--assertion-failed (form &optional string sargs args)
+ (if debug-on-error
+ (debug `(cl-assertion-failed ,form ,string ,@sargs))
So, `debug' is explicitly called now, which circumvents the normal
call-chain: signal > maybe_call_debugger > call_debugger > debug
This bug report was last modified 10 years and 103 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.