bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#37706: `inhibit-message' affects error backtrace printing in batch m


From: Lars Ingebrigtsen
Subject: bug#37706: `inhibit-message' affects error backtrace printing in batch mode
Date: Thu, 20 Aug 2020 17:10:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Paul Pogonyshev <pogonyshev@gmail.com> writes:

> When in batch mode, `debug-on-error' can be used to make Emacs
> print backtraces of any errors that occur:

[...]

> This is wrong.  When binding `inhibit-message' you have no idea
> that an error might happen inside the block.  Actually, you
> rather hope it doesn't.  In other words, when binding
> `inhibit-message' you never target error backtraces -- those are
> only unwanted side-effects of bugs in your code.
>
> Attached patch makes function `debug' temporarily rebind
> `inhibit-message' to nil. The patch is just three lines, but `diff'
> got mad because of reindentation.

Thanks for the patch -- it looks like this was fixed by this commit:

commit 502059433ce0e9699eb73d21656ce6e9e127d63b
Author:     Paul Pogonyshev <pogonyshev@gmail.com>
AuthorDate: Sun Jan 26 22:54:32 2020 -0500

    * lisp/emacs-lisp/debug.el (debug): Merge the non-interactive cases
    
    bug#38927


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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