From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66326: 29.1.50; There should be a way to promote warnings to errors Date: Thu, 19 Oct 2023 18:42:24 +0300 Message-ID: <83bkcuty8v.fsf@gnu.org> References: <83y1gj5ya9.fsf@gnu.org> <87wmw3zfd3.fsf@catern.com> <83wmw353ny.fsf@gnu.org> <83mswlslxu.fsf@gnu.org> <87o7h0yh7k.fsf@catern.com> <83a5skqvzz.fsf@gnu.org> <83r0lqu7wi.fsf@gnu.org> <83cyxatzva.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35901"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@catern.com, 66326@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 19 17:46:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qtVE0-00096h-U4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Oct 2023 17:46:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtVBZ-0004Vf-Qe; Thu, 19 Oct 2023 11:43:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtVBQ-0004JC-Rx for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 11:43:38 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtVBQ-0003D2-K1 for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 11:43:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtVBq-0005u1-TJ for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 11:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Oct 2023 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66326 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66326-submit@debbugs.gnu.org id=B66326.169773018722590 (code B ref 66326); Thu, 19 Oct 2023 15:44:02 +0000 Original-Received: (at 66326) by debbugs.gnu.org; 19 Oct 2023 15:43:07 +0000 Original-Received: from localhost ([127.0.0.1]:37526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtVAw-0005sI-Qq for submit@debbugs.gnu.org; Thu, 19 Oct 2023 11:43:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtVAu-0005ro-T9 for 66326@debbugs.gnu.org; Thu, 19 Oct 2023 11:43:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtVAO-0002ue-C3; Thu, 19 Oct 2023 11:42:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=J+ue1lM87aYWnLkssvdKW9hDx77IDkV7wR19xLcvLEQ=; b=gY+z78pFUvSc WPmg1L0A/8z1u8qwsYeiJUEnYkNlpZTZHLLPMQ8nCBzXxyVFI2WGh19KqccbgQNKbren/WWi30uWn 0AREfWI28DUptaWFlZ+UN8lyecPjCOSz4QjuyHjvbmKZCMnOAzUq8U6LOKMMuAXtNHeLLFY4JRIeu ao0WaMkRuINZ7J9njgWTBnQoxLcJXmmxf9s3iVBzw7Ao5PTu+LSlfY/zLNx9NEEVzRw3ja9v1VsjQ hjSKheZLhDxSWIoElFxzWE/45f7Cg+ubG6Xi/5sMZEuhgaVQrgdPdEv6I7B06KDxPl6i/eNjCk5Ll s0p9lBxrPyYxxk8FsSuloQ==; In-Reply-To: (message from Spencer Baugh on Thu, 19 Oct 2023 11:18:53 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272748 Archived-At: > From: Spencer Baugh > Cc: sbaugh@catern.com, 66326@debbugs.gnu.org > Date: Thu, 19 Oct 2023 11:18:53 -0400 > > Eli Zaretskii writes: > > > It is a concern for displaying anything and everything. > > Could you be more specific? Is there a way to signal an error during > startup, which won't be displayed? What worries me more is that there's a way to signal an error that could crash Emacs during these early stages of startup. > >> So there's no need to do extra work to delay errors in warnings.el. > > > > Yes, there is. > > Can you please elaborate? What exactly will go wrong if we don't delay > errors in warnings.el? See above. You seem to be summarily dismissing what I'm saying, so I have little motivation to elaborate. > > Delayed and shown how? Can you show a screenshot or post the contents > > of the buffer with the error message? > > With > (setq warning-to-error-types t) > ;;(setq warning-signal-errors-during-startup nil) ; default > (warn "foo") > > The following appears in the echo area and in *Messages*: > > warning-to-error: Warning (emacs): foo > Error in delayed-warnings-hook (display-delayed-warnings): (error "Warning (emacs): foo") Sounds like in these cases there's no reason to raise an error, since the information is not different from a mere delayed-warning?