all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: help-gnu-emacs@gnu.org
Subject: RE: how to display a character with a specific glyph and face ?
Date: Fri, 24 Oct 2014 07:01:38 -0700 (PDT)	[thread overview]
Message-ID: <f1b2e052-3bce-4d42-a5f0-12390323ac0d@default> (raw)
In-Reply-To: <<837fzq6jbw.fsf@gnu.org>>

> > Instead of modifying the standard-display-table, I should modify
> > the escape-glyph face, isn't it ?
> 
> 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



  parent reply	other threads:[~2014-10-24 14:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.11860.1414070397.1147.help-gnu-emacs@gnu.org>
2014-10-23 13:30 ` how to display a character with a specific glyph and face ? Stefan Monnier
2014-10-24  6:14   ` Boiteux Frederic
2014-10-24  7:02     ` Eli Zaretskii
     [not found]     ` <<837fzq6jbw.fsf@gnu.org>
2014-10-24 14:01       ` Drew Adams [this message]
2014-10-24 14:49         ` Boiteux Frederic
2014-10-23 12:57 Boiteux Frederic
2014-10-23 15:44 ` Eli Zaretskii

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f1b2e052-3bce-4d42-a5f0-12390323ac0d@default \
    --to=drew.adams@oracle.com \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.