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 15:09:00 -0400 Message-ID: References: Reply-To: gyliamos@gmail.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529262506 18256 195.159.176.226 (17 Jun 2018 19:08:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2018 19:08:26 +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 21:08:22 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 1fUd2E-0004dt-7U for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2018 21:08:22 +0200 Original-Received: from localhost ([::1]:56159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUd4J-0005JY-N0 for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2018 15:10:31 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-X-Trace: individual.net l9lirCJHcc6lmYHPlpyHygJLYtSWkKwJbqcWnpRSu6YtD6HL+7 Cancel-Lock: sha1:i2IwO9nI71DT9M0B1XQCfJupb7I= Original-Xref: usenet.stanford.edu gnu.emacs.help:223068 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:117189 Archived-At: On Sunday, 17 Jun 2018 2:51 PM -0400, Eli Zaretskii wrote: >> From: Will Parsons >> Date: Sun, 17 Jun 2018 14:38:01 -0400 >> >> 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. > > global-whitespace-mode (the function) sets global-whitespace-mode (the > variable), not whitespace-mode. So, using the function global-whitespace-mode is *not* the way to enable whitespace mode? I find that confusing; where would use one vs the other? >> Adding (whitespace-mode 1) to my .emacs file apparently has no effect; >> the value of whitespace-mode is still nil. > > In what buffer? In any buffer. >> 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. > > How did you change the mappings for this character to be part of the > display mappings? As I stated elsewhere, by manually editing my customization file. (And I can see the change via the regular Customization interface under Whitespace Display Mappings - the added character is displayed like a space, but I can run describe-char on it and see the 2007.) -- Will