emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No escape-glyph on untranslated Unicode


From: Juri Linkov
Subject: No escape-glyph on untranslated Unicode
Date: Fri, 07 Oct 2005 08:04:17 +0300
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Highlighting a character displayed as an escape sequence with octal
codes in `escape-glyph' face is good only when all possible cases are
covered.  Otherwise, it is misleading when some characters with octal
codes are not displayed in `escape-glyph' face.  There is one case
where this doesn't work.

When an untranslated character is displayed in an Unicode buffer,
it is displayed as an octal code, but without `escape-glyph' face.
`C-u C-x =' typed on such a character provides the following information:

      character: \340 (0303, 195, 0xc3, U+00E0)
        charset: [eight-bit-graphic] (8-bit graphic char (0xA0..0xFF))
     code point: [195]
[...]
There are text properties here:
  display              "\\340"
  help-echo            utf-8-help-echo
  untranslated-utf-8   224

This is an interesting approach.  The string with the octal character
code is attached with the `display' text property to the character.
What would be the best way to add the face `escape-glyph' to it?

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]