Subject: bug#61413: [PATCH] Make warnings show a "warning" emoji instead of a stop-sign

From: Kévin Le Gouguec <[email-masked]>
Date: Wed, 12 Feb 2025 08:21:52 +0100

Stefan Kangas <[email-masked]> writes:

> Konstantin Kharlamov <[email-masked]> writes:
>
>> Stop-sign emoji is confusing in context of warnings, because it
>> typically has red color, and looks like there was some error. Let's use
>> instead a "warning" emoji, which is typically shown in yellow color and
>> doesn't look as if immediate attention is needed.
>>
>> * lisp/emacs-lisp/warnings.el (warnings-suppress): replace stop-sign emoji
>> with a warning emoji.
>> ---
>>  lisp/emacs-lisp/warnings.el | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/lisp/emacs-lisp/warnings.el b/lisp/emacs-lisp/warnings.el
>> index 31b840d6c83..3f18ed89808 100644
>> --- a/lisp/emacs-lisp/warnings.el
>> +++ b/lisp/emacs-lisp/warnings.el
>> @@ -204,7 +204,7 @@ warning-suppress-p
>>      some-match))
>>  
>>  (define-icon warnings-suppress button
>> -  `((emoji "⛔")
>> +  `((emoji "⚠️")
>>      ;; Many MS-Windows console fonts don't have good glyphs for U+25A0.
>>      (symbol ,(if (and (eq system-type 'windows-nt)
>>                        (null window-system))
>
> This definitely risks going deep into bikeshedding territory, but in my
> view, the Unicode code point "WARNING SIGN" is clearly the better
> choice, as it directly conveys a warning.
>
> The Unicode code point "NO ENTRY", meanwhile, is just completely
> incomprehensible.  No entry to what?
>
> Can we install this?

Given the purpose of the button (_suppress_ the warning, not merely
report it) & Konstantin's remark¹ about the intuitive connotations of
red, ISTM

(a) adding an 'image' icon presentation using a neutral-colored SVG, or
(b) as Konstantin suggested, ditching pictograms entirely, and replacing
that icon with a regular text button clearly labeled "suppress",

would be preferable to s/⛔/⚠️: I would not expect users to intuit that
they can suppress warnings by interacting with the warning sign.

¹ Filed under bug#60854 after the merge, FTR.