From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: how to display a character with a specific glyph and face ? Date: Fri, 24 Oct 2014 07:01:38 -0700 (PDT) Message-ID: References: < > <<837fzq6jbw.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1414159720 2864 80.91.229.3 (24 Oct 2014 14:08:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2014 14:08:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 24 16:08:34 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 1XhfXe-00073f-4U for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 16:08:34 +0200 Original-Received: from localhost ([::1]:48871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhfXd-0000i2-K2 for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 10:08:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhfRA-0007mB-8m for help-gnu-emacs@gnu.org; Fri, 24 Oct 2014 10:01:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhfR1-0007ta-M3 for help-gnu-emacs@gnu.org; Fri, 24 Oct 2014 10:01:52 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:17479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhfR1-0007tQ-G6 for help-gnu-emacs@gnu.org; Fri, 24 Oct 2014 10:01:43 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s9OE1ekv027160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 24 Oct 2014 14:01:41 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s9OE1dCH007519 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 24 Oct 2014 14:01:40 GMT Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s9OE1dnD025519 for ; Fri, 24 Oct 2014 14:01:39 GMT In-Reply-To: <<837fzq6jbw.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:100584 Archived-At: > > Instead of modifying the standard-display-table, I should modify > > the escape-glyph face, isn't it ? >=20 > Either the escape-glyph face, or, if you are only interested in the > no-break space character, the nobreak-space face. If you want to highlight only hard (i.e., no-break) spaces, and not also hard hyphens, or if you want font-lock to control the highlighting, then you can use library `highlight-chars.el'. http://www.emacswiki.org/emacs/ShowWhiteSpace#HighlightChars http://www.emacswiki.org/emacs-en/download/highlight-chars.el You can turn on/off such highlighting: * in the current buffer only (i.e., locally), * globally whenever FontLockMode is turned on, or * automatically whenever a buffer is in a given major mode