[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Character FOO
From: |
Kenichi Handa |
Subject: |
Re: Character FOO |
Date: |
Wed, 25 Jan 2012 09:48:09 +0900 |
In article <address@hidden>, Eli Zaretskii <address@hidden> writes:
> In "emacs -Q" try this:
> M-: (put-text-property 149 154 'display "FOO") RET
> Then move point to buffer position 149 (under F from "FOO"), and type
> "C-u C-x =". The popped up buffer shows in its first line that the
> character at point is "FOO" (while the echo area says it's `e').
> Bug? feature?
It's a feature, but it has a bad effect in the above case.
C-u C-x = (describe-char) tries to display the character at position in
*Help* buffer as the same way as in the original buffer by
adding the same text properties.
(setq item-list
`(("character"
,(format "%s (%d, #o%o, #x%x)"
(apply 'propertize char-description
(text-properties-at pos))
char char char))
Changing that part to something like this:
(setq item-list
`(("character"
,(format "%s (displayed as %s) (%d, #o%o, #x%x)"
char-description
(apply 'propertize char-description
(text-properties-at pos))
char char char))
may be an improvement.
---
Kenichi Handa
address@hidden