From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: How switch from escaped octal character code to escaped HEX? Date: Wed, 12 Jan 2011 11:22:42 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294824216 23883 80.91.229.12 (12 Jan 2011 09:23:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Jan 2011 09:23:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 12 10:23:32 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 1PcwvT-00011S-Ki for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 10:23:31 +0100 Original-Received: from localhost ([127.0.0.1]:44606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcwvS-00016E-Ut for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 04:23:31 -0500 Original-Received: from [140.186.70.92] (port=41691 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pcwut-000168-R9 for help-gnu-emacs@gnu.org; Wed, 12 Jan 2011 04:22:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pcwus-0000LJ-Ii for help-gnu-emacs@gnu.org; Wed, 12 Jan 2011 04:22:55 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:60462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pcwus-0000GL-9W for help-gnu-emacs@gnu.org; Wed, 12 Jan 2011 04:22:54 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pcwuq-0000hW-DK for help-gnu-emacs@gnu.org; Wed, 12 Jan 2011 10:22:52 +0100 Original-Received: from 91.193.68.214 ([91.193.68.214]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Jan 2011 10:22:52 +0100 Original-Received: from gavenko by 91.193.68.214 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Jan 2011 10:22:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91.193.68.214 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:78405 Archived-At: 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.