From: Eli Zaretskii Date: Sat, 28 Jan 2012 09:52:24 +0000 (+0200) Subject: Fix character display by "C-u C-x =" in presence of display properties. X-Git-Tag: emacs-pretest-24.0.93~27 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e0da685ab9eccd5a4e2c5114c980b4ac34ec7675;p=emacs.git 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. --- 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))