emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 09e9d7c749: Fix display of warnings on w32 console


From: Eli Zaretskii
Subject: emacs-29 09e9d7c749: Fix display of warnings on w32 console
Date: Tue, 17 Jan 2023 08:45:33 -0500 (EST)

branch: emacs-29
commit 09e9d7c749680fd3580e9b1795e39051e3709917
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix display of warnings on w32 console
    
    * lisp/emacs-lisp/warnings.el (warnings-suppress): Use alternative
    symbol for TTY frames on MS-Windows.
---
 lisp/emacs-lisp/warnings.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/warnings.el b/lisp/emacs-lisp/warnings.el
index 9505c93581..31b840d6c8 100644
--- a/lisp/emacs-lisp/warnings.el
+++ b/lisp/emacs-lisp/warnings.el
@@ -204,8 +204,12 @@ SUPPRESS-LIST is the list of kinds of warnings to 
suppress."
     some-match))
 
 (define-icon warnings-suppress button
-  '((emoji "⛔")
-    (symbol " ■ ")
+  `((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))
+                 " » "
+               " ■ "))
     (text " stop "))
   "Suppress warnings."
   :version "29.1"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]