From e0da685ab9eccd5a4e2c5114c980b4ac34ec7675 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 28 Jan 2012 11:52:24 +0200 Subject: [PATCH] Fix character display by "C-u C-x =" in presence of display properties. lisp/descr-text.el (describe-char): Show the raw character, not only its display form at POS. Suggested by Kenichi Handa . See http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00760.html for the reasons. --- lisp/ChangeLog | 7 +++++++ lisp/descr-text.el | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f4598a5e70e..0b629637a79 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2012-01-28 Eli Zaretskii + + * descr-text.el (describe-char): Show the raw character, not only + its display form at POS. Suggested by Kenichi Handa . + See http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00760.html + for the reasons. + 2012-01-28 Phil Hagelberg * emacs-lisp/package.el (package-install): Run diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 0ab72d414e0..9aa061be57b 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el @@ -512,7 +512,8 @@ as well as widgets, buttons, overlays, and text properties." (setq item-list `(("character" - ,(format "%s (%d, #o%o, #x%x)" + ,(format "%s (displayed as %s) (codepoint %d, #o%o, #x%x)" + char-description (apply 'propertize char-description (text-properties-at pos)) char char char)) -- 2.39.2