From: Oleksandr Gavenko <gavenko@bifit.com.ua>
To: help-gnu-emacs@gnu.org
Subject: Re: How switch from escaped octal character code to escaped HEX?
Date: Wed, 12 Jan 2011 11:22:42 +0200 [thread overview]
Message-ID: <igjrsu$n2m$1@dough.gmane.org> (raw)
In-Reply-To: <jwvr5cj9wh5.fsf-monnier+gnu.emacs.help@gnu.org>
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 parent reply other threads:[~2011-01-12 9:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-28 15:39 How switch from escaped octal character code to escaped HEX? Oleksandr Gavenko
2010-12-28 15:51 ` Oleksandr Gavenko
[not found] ` <mailman.6.1293551515.18545.help-gnu-emacs@gnu.org>
2011-01-03 4:23 ` Stefan Monnier
2011-01-03 7:14 ` Deniz Dogan
2011-01-03 10:13 ` Deniz Dogan
2011-01-03 14:37 ` Peter Dyballa
2011-01-04 4:03 ` Stefan Monnier
[not found] ` <mailman.8.1294038895.27854.help-gnu-emacs@gnu.org>
2011-01-03 13:42 ` Barry Margolin
2011-01-11 10:23 ` Oleksandr Gavenko
[not found] ` <mailman.0.1294741438.20926.help-gnu-emacs@gnu.org>
2011-01-11 17:34 ` Stefan Monnier
2011-01-12 9:22 ` Oleksandr Gavenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='igjrsu$n2m$1@dough.gmane.org' \
--to=gavenko@bifit.com.ua \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).