GNU bug report logs - #61413
[PATCH] Make warnings show a "warning" emoji instead of a stop-sign

Previous Next

Package: emacs;

Reported by: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>

Date: Sat, 11 Feb 2023 08:47:02 UTC

Severity: wishlist

Tags: patch

Merged with 60854

Full log


View this message in rfc822 format

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: Mauro Aranda <maurooaranda <at> gmail.com>
Cc: rudolf <at> adamkovic.org, rms <at> gnu.org, stefankangas <at> gmail.com, Hi-Angel <at> yandex.ru, Eli Zaretskii <eliz <at> gnu.org>, 61413 <at> debbugs.gnu.org
Subject: bug#61413: [PATCH] Make warnings show a "warning" emoji instead of a stop-sign
Date: Sat, 22 Feb 2025 19:34:12 +0100
[Message part 1 (text/plain, inline)]
Mauro Aranda <maurooaranda <at> gmail.com> writes:

> Kévin Le Gouguec <kevin.legouguec <at> gmail.com> writes:
>
>> Mauro Aranda <maurooaranda <at> gmail.com> writes:
>>
>>> But, now we don't know if the help-echo property was effectively added
>>> by the library or it was already there :-(.  Sadness.
>>
>> Would the attached address that problem?  (To apply on top of the
>> previous patch; I'll squash it all if we are happy with it)
>
> Looks good to me, thanks.

Alright, here's the squashed patch then - with amended ChangeLog.  Let
me know whether it looks OK to install.


Back to the topic of the warnings-suppress icon representations: FWIW, I
toyed with status/dialog-error-symbolic.svg from adwaita-icon-theme, but
could not land on a result I found perfectly harmonious.

* Edited the SVG to remove the foreground color, as we usually do, so
that faces apply to the inserted image,
* but warnings-suppress inherits from the 'button icon, which means the
image gets the 'icon-face; the result looks messy IMO,
* inheriting from nil instead, buttonize's 'button face takes over,
which is somewhat confusing too,
* adding ':face default' to the image spec makes the result less jarring
(to me).

Attaching that experiment as well FTR; not wholly pleased with it
though.


(I wonder whether this part of the 'button icon…

  (define-icon button nil
    '((image :face icon-button) ; 👈 that one
      ; …
      )
    "Base icon for buttons."
    :version "29.1")

… is desirable.  AFAICT _all_ our in-tree icons inherit from nil instead
of 'button' despite their "button-like" function; wondering to what
extent they are opting out of this ':face icon-button'?)


[0001-Prevent-button.el-from-clearing-help-echo-strings.patch (text/x-patch, attachment)]
[icon-image.patch (text/x-patch, attachment)]

This bug report was last modified 56 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.