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:54:27 -0400 Message-ID: References: <87po0qoval.fsf@web.de> Reply-To: gyliamos@gmail.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529261602 17794 195.159.176.226 (17 Jun 2018 18:53:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2018 18:53:22 +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:53:18 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 1fUcnd-0004W4-DK for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2018 20:53:17 +0200 Original-Received: from localhost ([::1]:56129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUcpk-0002bb-MR for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2018 14:55:28 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 61 Original-X-Trace: individual.net ba3zs//U29kto02CxtLgEQgCwxWipNBHLbAOOB/5WTjNhUFibT Cancel-Lock: sha1:NuGxNgFcKK6HtSYGQ95HOLube6M= Original-Xref: usenet.stanford.edu gnu.emacs.help:223067 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:117188 Archived-At: On Sunday, 17 Jun 2018 1:55 AM -0400, Eli Zaretskii wrote: >> From: Michael Heerdegen >> Date: Sun, 17 Jun 2018 07:07:30 +0200 >> Cc: help-gnu-emacs@gnu.org >> >> 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. > > ??? How does that differ from "C-x 8 RET 2007 RET"? The latter is the > standard way of inserting characters in Emacs. > > If you did succeed to customize that variable, can you show a step by > step recipe? As I stated in my original post, I manually edited my custom.el file. That seems to have succeeded, because if I display the variable whitespace-display-mappings, I see: Value: ((space-mark 32 [183] [46]) (space-mark 160 [164] [95]) (space-mark 8199 [164] [95]) (newline-mark 10 [36 10]) (tab-mark 9 [187 9] [92 9])) Original value was ((space-mark 32 [183] [46]) (space-mark 160 [164] [95]) (newline-mark 10 [36 10]) (tab-mark 9 [187 9] [92 9])) -- Will