GNU bug report logs -
#76786
31.0.50; condition-case's `debug` causes Emacs to exit when in batch mode
Previous Next
Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>
Date: Thu, 6 Mar 2025 17:21:02 UTC
Severity: normal
Found in version 31.0.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Package: Emacs
Version: 31.0.50
% /usr/bin/emacs -Q --batch --eval '(setq debug-on-error t)' --eval '(progn (with-demoted-errors "A %S" (error "foo")) (message "B bar"))'
Debugger entered--Lisp error: (error "foo")
error("foo")
(condition-case err (error "foo") ((debug error) (message "A %S" err) nil))
(condition-case-unless-debug err (error "foo") (error (message "A %S" err) nil))
(with-demoted-errors "A %S" (error "foo"))
(progn (with-demoted-errors "A %S" (error "foo")) (message "B bar"))
eval((progn (with-demoted-errors "A %S" (error "foo")) (message "B bar")) t)
command-line-1(("--eval" "(setq debug-on-error t)" "--eval" "(progn (with-demoted-errors \"A %S\" (error \"foo\")) (message \"B bar\"))"))
command-line()
normal-top-level()
%
I'm happy to see a backtrace, but I should *also* see the
A foo
B bar
messages that I get to see when running this code without `--batch`.
Stefan
This bug report was last modified 135 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.