From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: akrl--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46025: 28.0.50; warning suppression buttons truncate warnings Date: Fri, 22 Jan 2021 09:12:09 +0000 Message-ID: References: <87im7qvwpl.fsf@gmail.com> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25884"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46025@debbugs.gnu.org To: No Wayman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 22 10:13:10 2021 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 1l2sVC-0006a0-4Z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jan 2021 10:13:10 +0100 Original-Received: from localhost ([::1]:35526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2sVB-0008Av-6e for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jan 2021 04:13:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2sV3-00089l-Uz for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 04:13:01 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48458) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l2sV3-0006VX-Ny for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 04:13:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l2sV3-0002e3-Jc for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 04:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Jan 2021 09:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46025 X-GNU-PR-Package: emacs Original-Received: via spool by 46025-submit@debbugs.gnu.org id=B46025.161130673410069 (code B ref 46025); Fri, 22 Jan 2021 09:13:01 +0000 Original-Received: (at 46025) by debbugs.gnu.org; 22 Jan 2021 09:12:14 +0000 Original-Received: from localhost ([127.0.0.1]:60001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2sUI-0002cL-BY for submit@debbugs.gnu.org; Fri, 22 Jan 2021 04:12:14 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:50287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2sUF-0002cA-BY for 46025@debbugs.gnu.org; Fri, 22 Jan 2021 04:12:13 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 10M9C9ue019399 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 22 Jan 2021 09:12:10 GMT In-Reply-To: <87im7qvwpl.fsf@gmail.com> (No Wayman's message of "Thu, 21 Jan 2021 15:51:09 -0500") 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" Xref: news.gmane.io gmane.emacs.bugs:198363 Archived-At: No Wayman writes: > The warning suppression buttons introduced in > 66d01012ba61a364fe92cdc1728bfa135a90626a truncate warning messages. > I have offered a trivial patch in the past to have an option to > disable these buttons: > > https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-09/msg01405.html > > Lars did not see it as a valid use case. His argument (summarized): > >> since you get the warnings so seldom, it makes sense >> to have the very few you see come with ready-made ways of making >> them go >> away, and then you're back to no warnings again. > > Initially I thought the idea of the buttons was useful, but after > thinking on it more > I agree with the case against these buttons Jonas Bernoulli made here: > > https://lists.gnu.org/archive/html/emacs-devel/2020-11/msg00768.html > > I would add to that, the fact that the buttons truncate the warning > messages makes it impossible for a user to make an informed decision > on whether or not they should be suppressing the warning. The > truncated messages are equally useless to me as a developer. Here's an > image someone sent me of the warnings on their system: > > https://user-images.githubusercontent.com/2872862/105290265-42526580-5bb0-11eb-962d-b56f71b6efc0.png > > While I politely encouraged them to send text in the future for such > output, > here's what I would've received: > > Warning (comp): Debugger entered--Lisp error: > (native-compiler-error-empty-byte > "/root/.emacs.d/straight/build/straight/straight-au..." > "/root/.emacs.d/straight/build/straight/straight-au...\ > ") Disable showing Disable logging > Warning (comp): Debugger entered--Lisp error: > (native-compiler-error-empty-byte > "/root/.emacs.d/straight/build/bind-key/bind-key-au..." > "/root/.emacs.d/straight/build/bind-key/bind-key-au...\ > ") Disable showing Disable logging > Warning (comp): Debugger entered--Lisp error: > (native-compiler-error-empty-byte > "/root/.emacs.d/straight/build/use-package/use-pack..." > "/root/.emacs.d/straight/build/use-package/use-pack...\ > ") Disable showing Disable logging > > It's only by luck I can see enough of the file path to know which > files are throwing the errors. > > Is there a way to work around this (absent my patch)? Hi, is using the full output in the *Async-native-compile-log* buffer an acceptable alternative? Regards Andrea