|
From: | Oleksandr Gavenko |
Subject: | Re: How switch from escaped octal character code to escaped HEX? |
Date: | Wed, 12 Jan 2011 11:22:42 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
On 11.01.2011 19:34, Stefan Monnier wrote:
New hex values is not colorized. How make this?(setq standard-display-table (make-display-table)) (let ( (i ?\x80) hex hi low ) (while (<= i ?\xff) (setq hex (format "%x" i)) (setq hi (elt hex 0)) (setq low (elt hex 1)) (aset standard-display-table (unibyte-char-to-multibyte i) (vector (make-glyph-code ?\\ 'escape-glyph) (make-glyph-code ?x 'escape-glyph) (make-glyph-code hi 'escape-glyph) (make-glyph-code low 'escape-glyph))) (setq i (+ i 1))))
Oh! Very thanks!!!!!!!! glyphs is interesting concept which I don't know.
[Prev in Thread] | Current Thread | [Next in Thread] |