Subject: Re: bug#38264: 27.0.50; Emacs terminates unexpectedly when noninteractive is t

From: Eli Zaretskii <[email-masked]>
Date: Tue, 19 Nov 2019 18:02:10 +0200

tags 38264 notabug
thanks

> From: Ihor Radchenko <[email-masked]>
> Date: Tue, 19 Nov 2019 10:51:39 +0800
> 
> When I try to run the following code, graphical emacs window terminates
> losing all the unsaved data.
> 
> (setq debug-on-error t)
> (let ((noninteractive t))
>   (/ 1 0))
> 
> The problem is reproducible with emacs -Q.
> Running the code without debug-on-error set to t does not trigger
> termination. 

This is a feature: in non-interactive mode entering a debugger
displays the backtrace and then kills Emacs.

Why are you binding noninteractive to t while debug-on-error is
enabled?