GNU bug report logs - #79311
31.0.50; Some characters not displayed when using standard-display-table

Previous Next

Package: emacs;

Reported by: Matija Obid <matija.obid <at> posteo.net>

Date: Mon, 25 Aug 2025 17:56:01 UTC

Severity: normal

Merged with 79314, 79317

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

To reply to this bug, email your comments to 79311 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79311; Package emacs. (Mon, 25 Aug 2025 17:56:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matija Obid <matija.obid <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 25 Aug 2025 17:56:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Matija Obid <matija.obid <at> posteo.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; Some characters not displayed when using
 standard-display-table
Date: Mon, 25 Aug 2025 16:07:46 +0000
Hello,

Steps to reproduce:
$ emacs -Q
#+begin_src elisp
(setq standard-display-table (make-display-table))
(aset standard-display-table ?> [?\〉])
(switch-to-buffer ">")
#+end_src

The buffer name in modeline is displayed as a square instead of parenthesis.
Note that: If I switch buffer with "C-x b > RET" buffer name is
displayed correctly.


In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, Motif Version 2.3.8,
cairo version 1.18.4)
Windowing system distributor 'The X.Org Foundation', version 11.0.12101015
System Description: Guix System

Configured using:
 'configure
 CONFIG_SHELL=/gnu/store/nnx8iifrj6jfih4sivivq17cf65aa968-bash-minimal-5.2.37/bin/bash
 SHELL=/gnu/store/nnx8iifrj6jfih4sivivq17cf65aa968-bash-minimal-5.2.37/bin/bash
 --prefix=/gnu/store/kpxqlh6wx83p8wqfzzggnjr0vc1ppr3v-emacs-master-31.0.50
 --enable-fast-install --with-x-toolkit=motif --with-imagemagick
 --without-xim --with-cairo --with-modules --with-native-compilation=aot
 'CFLAGS=-g -O2 -Wno-error=incompatible-pointer-types'
 --disable-build-details'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ
IMAGEMAGICK JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT
MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND
SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM
XINERAMA XINPUT2 XPM XRANDR MOTIF ZLIB

Important settings:
  value of $EMACSLOADPATH: /run/current-system/profile/share/emacs/site-lisp:/gnu/store/kpxqlh6wx83p8wqfzzggnjr0vc1ppr3v-emacs-master-31.0.50/share/emacs/31.0.50/lisp:/gnu/store/kpxqlh6wx83p8wqfzzggnjr0vc1ppr3v-emacs-master-31.0.50/share/emacs/31.0.50/lisp
  value of $LC_TIME: sl_SI.utf8
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: @im=exwm-xim
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/gnu/store/y118fz0hp27mkyzmgpg4p5jv98n5ibdh-emacs-compat-30.0.2.0/share/emacs/site-lisp/compat-30.0.2.0/compat hides /gnu/store/kpxqlh6wx83p8wqfzzggnjr0vc1ppr3v-emacs-master-31.0.50/share/emacs/31.0.50/lisp/emacs-lisp/compat

Features:
(shadow sort mail-extr compile comint ansi-osc ansi-color ring comp-run
bytecomp byte-compile comp-common rx emacsbug lisp-mnt message mailcap
yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache
epa derived epg rfc6068 epg-config gnus-util text-property-search
time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip
cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo motif x-toolkit xinput2 x multi-tty move-toolbar
make-network-process tty-child-frames native-compile emacs)

Memory information:
((conses 16 68013 13350) (symbols 48 6841 0) (strings 32 17773 2067)
 (string-bytes 1 659744) (vectors 16 10969)
 (vector-slots 8 152397 8095) (floats 8 24 2) (intervals 56 303 10)
 (buffers 1064 12))

-- 
Regards,
Matija




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Mon, 25 Aug 2025 19:31:01 GMT) Full text and rfc822 format available.

Notification sent to Matija Obid <matija.obid <at> posteo.net>:
bug acknowledged by developer. (Mon, 25 Aug 2025 19:31:02 GMT) Full text and rfc822 format available.

Message #10 received at 79311-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Matija Obid <matija.obid <at> posteo.net>
Cc: 79311-done <at> debbugs.gnu.org
Subject: Re: bug#79311: 31.0.50;
 Some characters not displayed when using standard-display-table
Date: Mon, 25 Aug 2025 22:29:54 +0300
> From: Matija Obid <matija.obid <at> posteo.net>
> Date: Mon, 25 Aug 2025 16:07:46 +0000
> 
> Steps to reproduce:
> $ emacs -Q
> #+begin_src elisp
> (setq standard-display-table (make-display-table))
> (aset standard-display-table ?> [?\〉])
> (switch-to-buffer ">")
> #+end_src

> 
> The buffer name in modeline is displayed as a square instead of parenthesis.

Thanks, should be fixed now.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79311; Package emacs. (Mon, 25 Aug 2025 21:17:02 GMT) Full text and rfc822 format available.

Message #13 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andy Moreton <andrewjmoreton <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#79311: 31.0.50;
 Some characters not displayed when using standard-display-table
Date: Mon, 25 Aug 2025 22:15:54 +0100
On Mon 25 Aug 2025, Eli Zaretskii wrote:

>> From: Matija Obid <matija.obid <at> posteo.net>
>> Date: Mon, 25 Aug 2025 16:07:46 +0000
>> 
>> Steps to reproduce:
>> $ emacs -Q
>> #+begin_src elisp
>> (setq standard-display-table (make-display-table))
>> (aset standard-display-table ?> [?\〉])
>> (switch-to-buffer ">")
>> #+end_src
>
>> 
>> The buffer name in modeline is displayed as a square instead of parenthesis.
>
> Thanks, should be fixed now.

This seems to cause display glitches in gnus on Windows, when using
non-ASCII chars for the indicators in gnus-sum-thread-tree-* variables.
These glitches did no occur in a build from two days ago.

The symptom is the gnus summary buffer displays \xe2 characters, instead
of the expected character, e.g. WHITE SQUARE (codepoint #x25a1) which
has buffer code #xE2 #x96 #xA1.

The wrong display is transient, in that moving the cursor over the wrong
display fixes the glitch.

    AndyM







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79311; Package emacs. (Tue, 26 Aug 2025 02:31:02 GMT) Full text and rfc822 format available.

Message #16 received at 79311 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andy Moreton <andrewjmoreton <at> gmail.com>
Cc: 79311 <at> debbugs.gnu.org
Subject: Re: bug#79311: 31.0.50;
 Some characters not displayed when using standard-display-table
Date: Tue, 26 Aug 2025 05:30:24 +0300
> From: Andy Moreton <andrewjmoreton <at> gmail.com>
> Date: Mon, 25 Aug 2025 22:15:54 +0100
> 
> On Mon 25 Aug 2025, Eli Zaretskii wrote:
> 
> >> From: Matija Obid <matija.obid <at> posteo.net>
> >> Date: Mon, 25 Aug 2025 16:07:46 +0000
> >> 
> >> Steps to reproduce:
> >> $ emacs -Q
> >> #+begin_src elisp
> >> (setq standard-display-table (make-display-table))
> >> (aset standard-display-table ?> [?\〉])
> >> (switch-to-buffer ">")
> >> #+end_src
> >
> >> 
> >> The buffer name in modeline is displayed as a square instead of parenthesis.
> >
> > Thanks, should be fixed now.
> 
> This seems to cause display glitches in gnus on Windows, when using
> non-ASCII chars for the indicators in gnus-sum-thread-tree-* variables.
> These glitches did no occur in a build from two days ago.
> 
> The symptom is the gnus summary buffer displays \xe2 characters, instead
> of the expected character, e.g. WHITE SQUARE (codepoint #x25a1) which
> has buffer code #xE2 #x96 #xA1.
> 
> The wrong display is transient, in that moving the cursor over the wrong
> display fixes the glitch.

Thanks, but please show a recipe starting from "emacs -Q", so I could
look into this.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79311; Package emacs. (Tue, 26 Aug 2025 07:59:02 GMT) Full text and rfc822 format available.

Message #19 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andy Moreton <andrewjmoreton <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#79311: 31.0.50;
 Some characters not displayed when using standard-display-table
Date: Tue, 26 Aug 2025 08:57:36 +0100
On Tue 26 Aug 2025, Eli Zaretskii wrote:

>> From: Andy Moreton <andrewjmoreton <at> gmail.com>
>> Date: Mon, 25 Aug 2025 22:15:54 +0100
>> 
>> On Mon 25 Aug 2025, Eli Zaretskii wrote:
>> 
>> >> From: Matija Obid <matija.obid <at> posteo.net>
>> >> Date: Mon, 25 Aug 2025 16:07:46 +0000
>> >> 
>> >> Steps to reproduce:
>> >> $ emacs -Q
>> >> #+begin_src elisp
>> >> (setq standard-display-table (make-display-table))
>> >> (aset standard-display-table ?> [?\〉])
>> >> (switch-to-buffer ">")
>> >> #+end_src
>> >
>> >> 
>> >> The buffer name in modeline is displayed as a square instead of parenthesis.
>> >
>> > Thanks, should be fixed now.
>> 
>> This seems to cause display glitches in gnus on Windows, when using
>> non-ASCII chars for the indicators in gnus-sum-thread-tree-* variables.
>> These glitches did no occur in a build from two days ago.
>> 
>> The symptom is the gnus summary buffer displays \xe2 characters, instead
>> of the expected character, e.g. WHITE SQUARE (codepoint #x25a1) which
>> has buffer code #xE2 #x96 #xA1.
>> 
>> The wrong display is transient, in that moving the cursor over the wrong
>> display fixes the glitch.
>
> Thanks, but please show a recipe starting from "emacs -Q", so I could
> look into this.

I can try, but it will take significant effort to produce such a
a restricted config.

After reverting only commit 21b072c60744 ("Fix use of display-table for
mode-line display") and rebuilding then the gnus summary buffer display
works as expected.

    AndyM





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79311; Package emacs. (Tue, 26 Aug 2025 13:31:02 GMT) Full text and rfc822 format available.

Message #22 received at 79311 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andy Moreton <andrewjmoreton <at> gmail.com>
Cc: 79311 <at> debbugs.gnu.org
Subject: Re: bug#79311: 31.0.50;
 Some characters not displayed when using standard-display-table
Date: Tue, 26 Aug 2025 16:30:10 +0300
> From: Andy Moreton <andrewjmoreton <at> gmail.com>
> Date: Tue, 26 Aug 2025 08:57:36 +0100
> 
> On Tue 26 Aug 2025, Eli Zaretskii wrote:
> 
> >> From: Andy Moreton <andrewjmoreton <at> gmail.com>
> >> Date: Mon, 25 Aug 2025 22:15:54 +0100
> >> 
> >> On Mon 25 Aug 2025, Eli Zaretskii wrote:
> >> 
> >> >> From: Matija Obid <matija.obid <at> posteo.net>
> >> >> Date: Mon, 25 Aug 2025 16:07:46 +0000
> >> >> 
> >> >> Steps to reproduce:
> >> >> $ emacs -Q
> >> >> #+begin_src elisp
> >> >> (setq standard-display-table (make-display-table))
> >> >> (aset standard-display-table ?> [?\〉])
> >> >> (switch-to-buffer ">")
> >> >> #+end_src
> >> >
> >> >> 
> >> >> The buffer name in modeline is displayed as a square instead of parenthesis.
> >> >
> >> > Thanks, should be fixed now.
> >> 
> >> This seems to cause display glitches in gnus on Windows, when using
> >> non-ASCII chars for the indicators in gnus-sum-thread-tree-* variables.
> >> These glitches did no occur in a build from two days ago.
> >> 
> >> The symptom is the gnus summary buffer displays \xe2 characters, instead
> >> of the expected character, e.g. WHITE SQUARE (codepoint #x25a1) which
> >> has buffer code #xE2 #x96 #xA1.
> >> 
> >> The wrong display is transient, in that moving the cursor over the wrong
> >> display fixes the glitch.
> >
> > Thanks, but please show a recipe starting from "emacs -Q", so I could
> > look into this.
> 
> I can try, but it will take significant effort to produce such a
> a restricted config.
> 
> After reverting only commit 21b072c60744 ("Fix use of display-table for
> mode-line display") and rebuilding then the gnus summary buffer display
> works as expected.

I didn't doubt that the problem was with that change, I just didn't
know how it could harm the Gnus summary buffer, which I never use,
especially since your report seemed to indicate that you customized
the indicators (the defaults are all ASCII characters).

I hope the fix I installed for bug#79317 also fixes this problem.  If
not, please describe what else is left to fix after that change.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79311; Package emacs. (Tue, 26 Aug 2025 20:30:01 GMT) Full text and rfc822 format available.

Message #25 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andy Moreton <andrewjmoreton <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#79311: 31.0.50;
 Some characters not displayed when using standard-display-table
Date: Tue, 26 Aug 2025 21:29:04 +0100
On Tue 26 Aug 2025, Eli Zaretskii wrote:

>> From: Andy Moreton <andrewjmoreton <at> gmail.com>
>> Date: Tue, 26 Aug 2025 08:57:36 +0100
>> 
>> On Tue 26 Aug 2025, Eli Zaretskii wrote:
>> 
>> >> From: Andy Moreton <andrewjmoreton <at> gmail.com>
>> >> Date: Mon, 25 Aug 2025 22:15:54 +0100
>> >> 
>> >> On Mon 25 Aug 2025, Eli Zaretskii wrote:
>> >> 
>> >> >> From: Matija Obid <matija.obid <at> posteo.net>
>> >> >> Date: Mon, 25 Aug 2025 16:07:46 +0000
>> >> >> 
>> >> >> Steps to reproduce:
>> >> >> $ emacs -Q
>> >> >> #+begin_src elisp
>> >> >> (setq standard-display-table (make-display-table))
>> >> >> (aset standard-display-table ?> [?\〉])
>> >> >> (switch-to-buffer ">")
>> >> >> #+end_src
>> >> >
>> >> >> 
>> >> >> The buffer name in modeline is displayed as a square instead of parenthesis.
>> >> >
>> >> > Thanks, should be fixed now.
>> >> 
>> >> This seems to cause display glitches in gnus on Windows, when using
>> >> non-ASCII chars for the indicators in gnus-sum-thread-tree-* variables.
>> >> These glitches did no occur in a build from two days ago.
>> >> 
>> >> The symptom is the gnus summary buffer displays \xe2 characters, instead
>> >> of the expected character, e.g. WHITE SQUARE (codepoint #x25a1) which
>> >> has buffer code #xE2 #x96 #xA1.
>> >> 
>> >> The wrong display is transient, in that moving the cursor over the wrong
>> >> display fixes the glitch.
>> >
>> > Thanks, but please show a recipe starting from "emacs -Q", so I could
>> > look into this.
>> 
>> I can try, but it will take significant effort to produce such a
>> a restricted config.
>> 
>> After reverting only commit 21b072c60744 ("Fix use of display-table for
>> mode-line display") and rebuilding then the gnus summary buffer display
>> works as expected.
>
> I didn't doubt that the problem was with that change, I just didn't
> know how it could harm the Gnus summary buffer, which I never use,
> especially since your report seemed to indicate that you customized
> the indicators (the defaults are all ASCII characters).
>
> I hope the fix I installed for bug#79317 also fixes this problem.  If
> not, please describe what else is left to fix after that change.

Thanks Eli, the display appears to be as expected now.

    AndyM





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79311; Package emacs. (Wed, 27 Aug 2025 02:30:02 GMT) Full text and rfc822 format available.

Message #28 received at 79311 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andy Moreton <andrewjmoreton <at> gmail.com>
Cc: 79311 <at> debbugs.gnu.org
Subject: Re: bug#79311: 31.0.50;
 Some characters not displayed when using standard-display-table
Date: Wed, 27 Aug 2025 05:29:05 +0300
merge 79311 79317
thanks

> From: Andy Moreton <andrewjmoreton <at> gmail.com>
> Date: Tue, 26 Aug 2025 21:29:04 +0100
> 
> On Tue 26 Aug 2025, Eli Zaretskii wrote:
> 
> >> From: Andy Moreton <andrewjmoreton <at> gmail.com>
> >> Date: Tue, 26 Aug 2025 08:57:36 +0100
> >> 
> >> On Tue 26 Aug 2025, Eli Zaretskii wrote:
> >> 
> >> >> From: Andy Moreton <andrewjmoreton <at> gmail.com>
> >> >> Date: Mon, 25 Aug 2025 22:15:54 +0100
> >> >> 
> >> >> On Mon 25 Aug 2025, Eli Zaretskii wrote:
> >> >> 
> >> >> >> From: Matija Obid <matija.obid <at> posteo.net>
> >> >> >> Date: Mon, 25 Aug 2025 16:07:46 +0000
> >> >> >> 
> >> >> >> Steps to reproduce:
> >> >> >> $ emacs -Q
> >> >> >> #+begin_src elisp
> >> >> >> (setq standard-display-table (make-display-table))
> >> >> >> (aset standard-display-table ?> [?\〉])
> >> >> >> (switch-to-buffer ">")
> >> >> >> #+end_src
> >> >> >
> >> >> >> 
> >> >> >> The buffer name in modeline is displayed as a square instead of parenthesis.
> >> >> >
> >> >> > Thanks, should be fixed now.
> >> >> 
> >> >> This seems to cause display glitches in gnus on Windows, when using
> >> >> non-ASCII chars for the indicators in gnus-sum-thread-tree-* variables.
> >> >> These glitches did no occur in a build from two days ago.
> >> >> 
> >> >> The symptom is the gnus summary buffer displays \xe2 characters, instead
> >> >> of the expected character, e.g. WHITE SQUARE (codepoint #x25a1) which
> >> >> has buffer code #xE2 #x96 #xA1.
> >> >> 
> >> >> The wrong display is transient, in that moving the cursor over the wrong
> >> >> display fixes the glitch.
> >> >
> >> > Thanks, but please show a recipe starting from "emacs -Q", so I could
> >> > look into this.
> >> 
> >> I can try, but it will take significant effort to produce such a
> >> a restricted config.
> >> 
> >> After reverting only commit 21b072c60744 ("Fix use of display-table for
> >> mode-line display") and rebuilding then the gnus summary buffer display
> >> works as expected.
> >
> > I didn't doubt that the problem was with that change, I just didn't
> > know how it could harm the Gnus summary buffer, which I never use,
> > especially since your report seemed to indicate that you customized
> > the indicators (the defaults are all ASCII characters).
> >
> > I hope the fix I installed for bug#79317 also fixes this problem.  If
> > not, please describe what else is left to fix after that change.
> 
> Thanks Eli, the display appears to be as expected now.

Great, so I'm merging those bugs.




Forcibly Merged 79311 79317. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 27 Aug 2025 12:08:02 GMT) Full text and rfc822 format available.

Forcibly Merged 79311 79314 79317. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 29 Aug 2025 06:25:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 79314 <at> debbugs.gnu.org and Daniel Mendler <mail <at> daniel-mendler.de> Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 29 Aug 2025 06:25:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 days ago.

Previous Next


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