From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38264: 27.0.50; Emacs terminates unexpectedly when noninteractive is t Date: Wed, 20 Nov 2019 17:59:28 +0200 Message-ID: <834kyy1qu7.fsf@gnu.org> References: <87mucsshms.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <835zjf3ldp.fsf@gnu.org> <87imnf4xe9.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="225604"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38264@debbugs.gnu.org To: Ihor Radchenko , Artur Malabarba Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 20 17:00:23 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iXSOy-000wSI-OL for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Nov 2019 17:00:20 +0100 Original-Received: from localhost ([::1]:59812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXSOx-0003QQ-9T for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Nov 2019 11:00:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39610) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXSOk-0003LD-2e for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2019 11:00:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXSOi-0005BE-VU for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2019 11:00:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41919) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXSOi-0005Aj-Rm for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2019 11:00:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iXSOg-0002MG-3m for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2019 11:00:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Nov 2019 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38264 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 38264-submit@debbugs.gnu.org id=B38264.15742655698996 (code B ref 38264); Wed, 20 Nov 2019 16:00:02 +0000 Original-Received: (at 38264) by debbugs.gnu.org; 20 Nov 2019 15:59:29 +0000 Original-Received: from localhost ([127.0.0.1]:50740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXSO8-0002L2-QM for submit@debbugs.gnu.org; Wed, 20 Nov 2019 10:59:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXSO7-0002Kn-3B for 38264@debbugs.gnu.org; Wed, 20 Nov 2019 10:59:27 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iXSO1-00050S-SL; Wed, 20 Nov 2019 10:59:21 -0500 Original-Received: from [176.228.60.248] (port=4814 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iXSO0-0005Tq-Ov; Wed, 20 Nov 2019 10:59:21 -0500 In-reply-to: <87imnf4xe9.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> (message from Ihor Radchenko on Wed, 20 Nov 2019 00:57:18 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172055 Archived-At: > From: Ihor Radchenko > Cc: 38264@debbugs.gnu.org > Date: Wed, 20 Nov 2019 00:57:18 +0800 > > > This is a feature: in non-interactive mode entering a debugger > > displays the backtrace and then kills Emacs. > > It indeed makes sense. However, it does not make sense when > noninteractive is manually set to 't in normal interactive mode. How can Emacs distinguish between these two situations? The value of 'noninteractive' is how it knows whether the session is an interactive one, and your code steps on it. > Note that package.el, for example, can set noninteractive to 't at some > point (see package-generate-autoloads), even if emacs is otherwise > interactive. > > > Why are you binding noninteractive to t while debug-on-error is > > enabled? > > Similar to package.el, straight.el also binds noninteractive to 't when > generating autoloads. What package.el does makes little sense to me, see below. Does straight.el have a reason to do the same, you did you just copy the code from package.el? If the code in straight.el is simply a copy from package.el, then just remove the line which binds 'noninteractive'. You don't need it because all it does is disable calls to 'message' inside 'autoload-generate-file-autoloads', and you already bind 'inhibit-message' to t, so no messages will be displayed anyway. Artur, I think for the same reason we have no need to bind 'noninteractive' in 'package-generate-autoloads', or am I missing something? Btw, the other places in package.el which use 'inhibit-message' to bind 'save-silently' to a non-nil value seem also redundant, since if 'inhibit-message' is non-nil, its effect is a superset of what 'save-silently' does anyway. WDYT?