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:38:01 -0400 Message-ID: References: Reply-To: gyliamos@gmail.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529260701 17468 195.159.176.226 (17 Jun 2018 18:38:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2018 18:38:21 +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:38:17 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 1fUcZ6-0004Pf-6j for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2018 20:38:16 +0200 Original-Received: from localhost ([::1]:56063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUcbB-0004mi-Pf for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2018 14:40:25 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-X-Trace: individual.net Vv7EiK1m3e4Nbfb7ibwOYAFvi7xKmBcffDZoZht205AuNAq7XT Cancel-Lock: sha1:FrH5QQ+wORnI6v8iebPBgXbVMEI= Original-Xref: usenet.stanford.edu gnu.emacs.help:223064 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:117185 Archived-At: On Sunday, 17 Jun 2018 2:00 AM -0400, Eli Zaretskii wrote: >> From: Will Parsons >> Date: Sat, 16 Jun 2018 16:15:59 -0400 >> >> 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". (This message occurs even >> if I try to change one of the display characters of an existing entry >> in the list and apply.) > > Whitespace Display Mappings only has effect if you turn on > whitespace-mode. The special display of u+00A0 does not require > whitespace-mode, it is implemented directly in the display engine. > Maybe we should extend that built-in treatment to the other > "space-like" characters. OK - that explains the difference I see between the display of u+00A0 and u+2007, but now I'm even more confused about activating whitespace-mode: What I have had in my .emacs file for years is the following: (global-whitespace-mode 1) (setq-default whitespace-style '(face lines-tail tabs trailing)) Examining the value of whitespace-mode shows nil, however. Adding (whitespace-mode 1) to my .emacs file apparently has no effect; the value of whitespace-mode is still nil. Now if I interactively run the command "whitespace-mode", the value of the variable whitespace-mode turns to t, but the display of u+2007 remains unchanged. >> 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. > > Did you also turn on whitespace-mode? See above. -- Will