GNU bug report logs -
#78522
31.0.50; Conflict between standard-display-unicode-special-glyphs and whitespace-mode
Previous Next
Reported by: Ergus <spacibba <at> aol.com>
Date: Wed, 21 May 2025 00:12:01 UTC
Severity: normal
Found in version 31.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Full log
Message #8 received at 78522 <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 21 May 2025 02:11:16 +0200
> From: Ergus via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
>
> Whitespace mode contradicts the standard-display-unicode-special-glyphs
> effect
>
> Reproduce:
> ;; -------------------------------
> emacs -Q -nw
> M-x standard-display-unicode-special-glyphs ;; This looks as expected
> M-x whitespace-mode ;; reverts the effect
> ;; -------------------------------
>
> The only way to get back the effect of
> standard-display-unicode-special-glyphs is disabling whitespace-mode.
Does the patch below fix the problem?
diff --git a/lisp/whitespace.el b/lisp/whitespace.el
index 1042575..58ba0db 100644
--- a/lisp/whitespace.el
+++ b/lisp/whitespace.el
@@ -2480,7 +2480,8 @@ whitespace-display-char-on
;; Assure `buffer-display-table' is unique
;; when two or more windows are visible.
(setq buffer-display-table
- (copy-sequence buffer-display-table)))
+ (copy-sequence (or buffer-display-table
+ standard-display-table))))
(unless buffer-display-table
(setq buffer-display-table (make-display-table)))
(dolist (entry whitespace-display-mappings)
This bug report was last modified 6 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.