From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Latin-1 non breaking space not highlighted Date: Fri, 19 Apr 2002 09:55:11 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200204191355.g3JDtBs09265@rum.cs.yale.edu> References: <200204190155.KAA08907@etlken.m17n.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1019224656 30465 127.0.0.1 (19 Apr 2002 13:57:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 19 Apr 2002 13:57:36 +0000 (UTC) Cc: monnier+gnu/emacs@RUM.cs.yale.edu, eliz@is.elta.co.il, rms@gnu.org, ulrich@a0.complang.tuwien.ac.at, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16yYtM-0007vG-00 for ; Fri, 19 Apr 2002 15:57:36 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16yZCj-0000W5-00 for ; Fri, 19 Apr 2002 16:17:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16yYsu-0000QL-00; Fri, 19 Apr 2002 09:57:08 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16yYr5-0000Ft-00; Fri, 19 Apr 2002 09:55:15 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g3JDtBs09265; Fri, 19 Apr 2002 09:55:11 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Kenichi Handa Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2782 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2782 > "Stefan Monnier" writes: > >> But Handa-san listed a couple of problems with using the standard syntax > >> tables. > > > I seem to have missed his email. > > My point is: > show-trailing-whitespace should not mean highlighting such > charactes that have "whitespace" SYNTAX, but should mean > highlighting sucn characters that have "whitespace" GLYPH. That's a separate issue. Related to whether or not we should take the display-table into account. > Both sets of characters mostly overlap but not necessarily > be the same. > > For instance, even if I set syntax of NBSP to "word > constitute", When would you do that and why (considering that we're specifically talking about the global standard-syntax-table) ? > show-trailing-whitespace should highlight it. Really ? I think this very much depends on the answer to the previous question. We really just need a table somewhere that tells us what is whitespace and what isn't. Currently I think there are two such tables, one is the standard-syntax-table, the other is the ` ' category. Actually, I [:space:] and [:blank:] are two more, but [:space:] relies on the buffer-local syntax-table (i.e. not good, although it's not that bad since it only uses it for non-ASCII chars, IIRC) and [:blank:] only matches ASCII chars (i.e. not good either). Stefan