emacs-diffs
[Top][All Lists]
Advanced

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

master 3bf9a047427: Fix handling of glyph codes in whitespace.el


From: Eli Zaretskii
Subject: master 3bf9a047427: Fix handling of glyph codes in whitespace.el
Date: Wed, 24 Apr 2024 03:03:28 -0400 (EDT)

branch: master
commit 3bf9a047427aab554ce228250a796fa327d9b353
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix handling of glyph codes in whitespace.el
    
    * lisp/whitespace.el (whitespace-display-vector-p): Support glyph
    codes, not just plain characters.  See
    https://lists.gnu.org/archive/html/help-gnu-emacs/2024-04/msg00248.html
    for the details.
---
 lisp/whitespace.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/whitespace.el b/lisp/whitespace.el
index 15c1b83fcc1..bc23a8794eb 100644
--- a/lisp/whitespace.el
+++ b/lisp/whitespace.el
@@ -2474,7 +2474,7 @@ purposes)."
   (let ((i (length vec)))
     (when (> i 0)
       (while (and (>= (setq i (1- i)) 0)
-                 (whitespace-char-valid-p (aref vec i))))
+                 (whitespace-char-valid-p (glyph-char (aref vec i)))))
       (< i 0))))
 
 



reply via email to

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