From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Making a non-ASCII space character visible Date: Sun, 17 Jun 2018 22:31:21 +0300 Message-ID: <837emxtdkm.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529263809 14679 195.159.176.226 (17 Jun 2018 19:30:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2018 19:30:09 +0000 (UTC) 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:30:05 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 1fUdNE-0003i6-HX for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2018 21:30:04 +0200 Original-Received: from localhost ([::1]:56211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUdPL-00028c-OU for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2018 15:32:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUdOg-00027q-Qg for help-gnu-emacs@gnu.org; Sun, 17 Jun 2018 15:31:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUdOd-0006y7-K8 for help-gnu-emacs@gnu.org; Sun, 17 Jun 2018 15:31:34 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUdOd-0006xz-Gk for help-gnu-emacs@gnu.org; Sun, 17 Jun 2018 15:31:31 -0400 Original-Received: from [176.228.60.248] (port=3464 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fUdOb-0008Ka-L3 for help-gnu-emacs@gnu.org; Sun, 17 Jun 2018 15:31:31 -0400 In-reply-to: (message from Will Parsons on Sun, 17 Jun 2018 15:09:00 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:117191 Archived-At: > From: Will Parsons > Date: Sun, 17 Jun 2018 15:09:00 -0400 > > > 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? It enables global-whitespace-mode. > I find that confusing; where would use one vs the other? One is global, the other is local to the buffer in which you turn it on. > >> 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. We are mis-communicating. My point was that the above only turns the mode on in the buffer that happened to be current when the expression was evaluated. And that is not what you want, so whitespace-mode should normally be turned on from some major-mode hook. > 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.) If I copy the into *scratch* value of the defcustom converted to a setq expression, add to it the customization for u+2007, evaluate the expression, and then re-enable whitespace-mode, I do see it take effect: the u+2007 character is displayed as the NBSP is. So I'm unsure why it isn't working for you.