From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How switch from escaped octal character code to escaped HEX? Date: Tue, 11 Jan 2011 12:34:28 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294767653 6821 80.91.229.12 (11 Jan 2011 17:40:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 Jan 2011 17:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 11 18:40:49 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PciDB-00013q-Aa for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jan 2011 18:40:49 +0100 Original-Received: from localhost ([127.0.0.1]:44020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PciDA-0002Bi-Qz for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jan 2011 12:40:48 -0500 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Injection-Info: mx02.eternal-september.org; posting-host="8jSoPKcnI4RsJz0v4H4pBg"; logging-data="10534"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kBEGOUCy7a3WWtF6hmucg" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:QspQ/BTUuOvOwb+x2YXkAEoexsk= sha1:yTE+XwLXj7JKu3xicDQNquKV85s= Original-Xref: usenet.stanford.edu gnu.emacs.help:184216 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78394 Archived-At: > 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)))) -- Stefan