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:07:21 +0300 Message-ID: <83cyxatzva.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35207"; 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:09:00 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 1qtUdu-0008v2-8J for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Oct 2023 17:08:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtUda-0004Be-FU; Thu, 19 Oct 2023 11:08:38 -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 1qtUdY-00040N-KX for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 11:08:36 -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 1qtUdY-0002DN-5z for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 11:08:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtUdy-0004gv-ED for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 11:09: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:09: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.169772808517799 (code B ref 66326); Thu, 19 Oct 2023 15:09:02 +0000 Original-Received: (at 66326) by debbugs.gnu.org; 19 Oct 2023 15:08:05 +0000 Original-Received: from localhost ([127.0.0.1]:37483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtUd3-0004d1-6R for submit@debbugs.gnu.org; Thu, 19 Oct 2023 11:08:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtUd0-0004cW-57 for 66326@debbugs.gnu.org; Thu, 19 Oct 2023 11:08:03 -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 1qtUcT-00026t-Da; Thu, 19 Oct 2023 11:07:29 -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=EomXUr/E67BsXEZioaLZvuK0vjh+tFMOJ9MwF2KOsgs=; b=Ub8IGHhVYJxL bw9q9oyTSovu5KyTcT1J1q1TPYB4KNzhL6Te3uKa5jf9py84FYK03V29h4oNsArVBRaoU0eH7k4Yb GxkFC+PzEoyE8j7fWlD4QSH82PQ8xPb9MHf7CnIQUdBU0UL9KBWka5C6LoPtDiH+Zoq/wghY0AX9x 9DIgqhmT8OD8oV8uDu3/0vlMReNwP5P+l61ooiDSzqTYiq5pmVYckzAXVKTTxWE55M0U8cGwaZo3v yvJuVpTDMQDkPJEYRerTWzkQVuFYkCdH7m9elEmuSJmDZCD5DDOwmxJGuf8iuWD8V2rjqzM25UEG+ 7vrVHOYvXPzvQNMa6w4WdQ==; In-Reply-To: (message from Spencer Baugh on Thu, 19 Oct 2023 10:50:59 -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:272746 Archived-At: > From: Spencer Baugh > Cc: sbaugh@catern.com, 66326@debbugs.gnu.org > Date: Thu, 19 Oct 2023 10:50:59 -0400 > > >> What is the good reason that we delay warnings? > > > > Because Emacs is not yet able to display stuff reliably, for example. > > Or the display environment was not yet set up completely. > > Right. But that is not a concern for errors. It is a concern for displaying anything and everything. > So there's no need to do extra work to delay errors in warnings.el. Yes, there is. > >> But OK, attached is a new patch which adds an option to immediately > >> raise the warnings converted into errors during startup, instead of > >> delaying them. So the default is to delay the error until after > >> startup. Does this work? > > > > Did you test that? If you did, what happens with delayed warnings > > when the new option is nil? > > They continue to be delayed. If a warning is turned into an error, the > error is signaled by delayed-warnings-hook, run by after-init-hook. Delayed and shown how? Can you show a screenshot or post the contents of the buffer with the error message?