From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Will Parsons Newsgroups: gmane.emacs.help Subject: Re: Making a non-ASCII space character visible Date: Sun, 17 Jun 2018 14:45:32 -0400 Message-ID: References: Reply-To: gyliamos@gmail.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529261329 30513 195.159.176.226 (17 Jun 2018 18:48:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2018 18:48:49 +0000 (UTC) User-Agent: slrn/1.0.3 (FreeBSD) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 17 20:48:45 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUcjF-0007qz-Jd for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2018 20:48:45 +0200 Original-Received: from localhost ([::1]:56100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUclM-0000IP-S3 for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2018 14:50:56 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-X-Trace: individual.net GgCo9mUBflsJCyLgwk1cHAU/d8nwen5pMA0kPtf5PFyXQCb08W Cancel-Lock: sha1:iz2ap13/2b1XLmw9TerNqB8f4MQ= Original-Xref: usenet.stanford.edu gnu.emacs.help:223065 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:117186 Archived-At: On Sunday, 17 Jun 2018 1:07 AM -0400, Michael Heerdegen wrote: > Will Parsons writes: > >> I have a desire to use the Unicode character A007 (FIGURE SPACE) in a >> document and to be able to distinguish it visually from a regular ASCII >> space. This seems to be already done in the case of 00A0 (NO-BREAK >> SPACE) which appears as an underscore with a distinctive face. >> >> It *looks* like I should be able to do this via the customization >> option "Whitespace Display Mappings", but no matter what I do, >> attempting to "Apply" the changes results in an error message, "This >> field should contain a single character". > > Seems you tried to insert a printed representation of the character? > AFAIK you must insert the character. You can achieve this with M-: > (insert ?\x2007) for example. Yes, that's not so nice. No, I inserted the character. I have occasion to insert miscellaneous Unicode character sufficiently enough that I have re-bound M-u to insert-char to make this easier. >> Feeling desperate, I copied the existing value of >> whitespace-display-mappings directly into my custom.el file, and >> manually added a new entry for A007 (8199) on the model of the >> existing entry for 00A0 (160), but this seems to have no effect on the >> display. > > If you did it right, note that you must re-enable `whitespace-mode' to > give it a chance to update the `buffer-display-table'. That doesn't > happen automatically. I completely restarted Emacs after doing it. Also, see my reply to Eli. -- Will