From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Boiteux Frederic" Newsgroups: gmane.emacs.help Subject: how to display a character with a specific glyph and face ? Date: Thu, 23 Oct 2014 14:57:43 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1414070418 29301 80.91.229.3 (23 Oct 2014 13:20:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2014 13:20:18 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 23 15:20:11 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XhIJE-0007zD-1K for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Oct 2014 15:20:08 +0200 Original-Received: from localhost ([::1]:39631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhIJD-0005ud-Gt for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Oct 2014 09:20:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhHxh-0003Iu-4o for help-gnu-emacs@gnu.org; Thu, 23 Oct 2014 08:57:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhHxb-0001r1-0s for help-gnu-emacs@gnu.org; Thu, 23 Oct 2014 08:57:53 -0400 Original-Received: from susano.prosodie.net ([213.139.101.39]:38379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhHxa-0001qj-Qc for help-gnu-emacs@gnu.org; Thu, 23 Oct 2014 08:57:46 -0400 Original-Received: from cadine.france.prosodie.local (france.prosodie.local [192.168.134.63]) by susano.prosodie.net (Postfix) with ESMTP id 771B42F1814F for ; Thu, 23 Oct 2014 14:57:41 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: how to display a character with a specific glyph and face ? Thread-Index: Ac/uvNOMBwxBSO6tQW6evm36DdMHUw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.139.101.39 X-Mailman-Approved-At: Thu, 23 Oct 2014 09:19:55 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100568 Archived-At: Hello, When I=A0was using Emacs23, I had a piece of config to display = =AB=A0no-break space=A0=BB character with another glyph (centered dot) = an a specific face (with a blue background) : (make-face 'nbsp-face) (set-face-background 'nbsp-face "LightBlue") (require 'disp-table) (aset standard-display-table (make-char 'latin-iso8859-1 (- ?\240 128)) (vector (+ ?\267 (* 524288 (face-id 'nbsp-face))))) It was very helpful when editing text mixing standard and no-break = spaces.=20 Now, I=A0use Emacs24 and mainly UTF-8 encoded files/buffers, and = I=A0tried to do the same, without success. I tried : (aset standard-display-table #xA0 ;; NO-BREAK SPACE (vector (+ #xB7 ;; MIDDLE DOT (* 524288 (face-id 'nbsp-face))))) But it doesn't work as expected :=A0I=A0get an Unicode character not = mapped to a glyph (giving a number written in a square), with a red = background (!). Do you know how I=A0could do this display with Emacs24 ? With regards, Fred.