From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#66326: 29.1.50; There should be a way to promote warnings to errors Date: Sat, 21 Oct 2023 02:12:13 -0700 Message-ID: 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> <83bkcuty8v.fsf@gnu.org> <83v8b1sqtw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4429"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@catern.com, 66326@debbugs.gnu.org To: Eli Zaretskii , Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 21 11:12:47 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 1qu82I-0000vi-Qc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Oct 2023 11:12:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qu828-00039C-Bg; Sat, 21 Oct 2023 05:12:36 -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 1qu826-000393-Kp for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 05:12:34 -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 1qu826-0006p0-D0 for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 05:12:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qu82Y-0003xR-1k for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 05:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Oct 2023 09:13: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.169787957115195 (code B ref 66326); Sat, 21 Oct 2023 09:13:02 +0000 Original-Received: (at 66326) by debbugs.gnu.org; 21 Oct 2023 09:12:51 +0000 Original-Received: from localhost ([127.0.0.1]:42181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qu82N-0003x0-AK for submit@debbugs.gnu.org; Sat, 21 Oct 2023 05:12:51 -0400 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:44229) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qu82K-0003wm-JS for 66326@debbugs.gnu.org; Sat, 21 Oct 2023 05:12:50 -0400 Original-Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2c5210a1515so25699711fa.0 for <66326@debbugs.gnu.org>; Sat, 21 Oct 2023 02:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697879534; x=1698484334; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=nlnewVQExz2uNoT+TkE7nUXxzLjmUXHL8JLUh+NJLyA=; b=igfcGw+TOwKHu+SeZV9VyiSTcSvFH0jJNZNBtxXCtYFFhNvx0kv0YzpJzewGOluNfR XugQCdSoMFIDnQlQRsOkg7/Xc39w/4PC8NNzcDkbVNIcfeRNqKLZEr/hgClpRbswPqdH ChMXLuVNHi3NDiJXZhoTSD6no1rcjQ5qhaP8HdDIgXgKPBs8G7geWZ6qb1b4rFlj2240 CmqJkW1ZL6hWJLBkEvACQeEu5tEf2WDdAtajpIHAKZNzDzx4UicrSUttk836hTr9Zc6a fMOroeXCq6nh+vKEKVex8ObYwisDQnYqiiXg4z8ws3MPcpA41Kyy56RSoeTg0Z8yMuGv JVrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697879534; x=1698484334; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nlnewVQExz2uNoT+TkE7nUXxzLjmUXHL8JLUh+NJLyA=; b=BUUE/zpC6SMLH7jn1F4IuJ0nx0HoXIwa03mv+9BDUH0saOlQD+uVOPVKBZZjVx4hOE 2Z0MGjEsr0lAs4ut3IBeC1Ei3J3YzJXVHDjlh7LSHdOtOIU7XpAXVIwFjR9ErSbo/xcR GBe32X+NuyhBA+3X7DT8ZbuTWWTVPETpOMIMrcKd8G+yM2s41fqGesYx7Wb5XCgBvET4 gpJ/D+5IJfybX7OcknIjVYqT8wzFCzZANoLbEEAjkpDGyyLJMX3IWmmHrEvokLdlDg+D fbEDjhUQJt2Ud175K8wP08g80O2KB7RSK4WyMCy+mt4uKIMmtspDDzL2nu0N3sAUE5SH 8FgA== X-Gm-Message-State: AOJu0YzcA8IFCDbKsPnDur84R1vTRepniz9I0M+nZFn6snBRQPzrUglT qZWUDpYmpD37q6WqvqcWEewnppcIXaQR73q/GQc= X-Google-Smtp-Source: AGHT+IEmMA0cZROvaE7Dp6PQ4lKvoX4PIKoHmFP5+jEshf2JqeT74Nl6dJT4ejxyYUI9SY8LDDea+x3EKZErH7HApCU= X-Received: by 2002:a2e:86c7:0:b0:2c5:1602:53f6 with SMTP id n7-20020a2e86c7000000b002c5160253f6mr3023166ljj.34.1697879533780; Sat, 21 Oct 2023 02:12:13 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 21 Oct 2023 02:12:13 -0700 In-Reply-To: <83v8b1sqtw.fsf@gnu.org> 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:272840 Archived-At: Eli Zaretskii writes: > More generally, I'm worried by the tendency of people to submit > patches for Emacs as soon as they find something they think is missing > in Emacs that they need for some one-time job. Emacs is not supposed > to be a huge heap of random features that someone at some time found > useful for some random job. Emacs is Free Software: you can easily > implement this stuff in your local copy and use it as much as you > want; no need to add that to the Emacs core, unless there's a real > need for it expressed by enough people, and no better solutions in > hand. I do this for my local jobs all the time. FWIW, I'm generally always in favor of features that make the Emacs Lisp developers' lives easier, and as much as I appreciate that some users might want to debug warnings, I don't think I understand the use case(s). These questions come to mind: - Are there many warnings during startup? - Why are they a problem (can't they just be ignored)? - If some code warns, presumably it's a real issue and should be fixed by the user, not in the code. Otherwise it should be an error. No? - Why can't users add an advice to `display-warning' that simply calls `error' or somesuch? Or even just redefine it? Perhaps this feature would be better as a GNU ELPA package `debug-warnings' or something like that, so that the community could get more experience with it. If it catches on, perhaps we could consider adding it to core. Would that way of working make sense?