From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: whitespace includes U+3000 Date: Wed, 05 Jul 2006 11:33:03 -0600 Organization: IHS Message-ID: References: <871wtegf13.fsf@jidanni.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1152120937 7340 80.91.229.2 (5 Jul 2006 17:35:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2006 17:35:37 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 05 19:35:37 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FyBHR-0002uQ-Vj for ged-emacs-devel@m.gmane.org; Wed, 05 Jul 2006 19:35:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyBHR-0001Eb-GU for ged-emacs-devel@m.gmane.org; Wed, 05 Jul 2006 13:35:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FyBHE-0001EF-GQ for emacs-devel@gnu.org; Wed, 05 Jul 2006 13:35:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FyBHD-0001E1-HM for emacs-devel@gnu.org; Wed, 05 Jul 2006 13:35:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyBHD-0001Dy-Bx for emacs-devel@gnu.org; Wed, 05 Jul 2006 13:35:03 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FyBHD-0001L8-QO for emacs-devel@gnu.org; Wed, 05 Jul 2006 13:35:04 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FyBGa-0002jO-Sh for emacs-devel@gnu.org; Wed, 05 Jul 2006 19:34:27 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Jul 2006 19:34:24 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Jul 2006 19:34:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 53 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56587 Archived-At: Richard Stallman wrote: > > You can probably get this result by putting NBSP into the pattern > > for show-trailing-whitespace to recognize. Redisplay will override > > the face, for the NBSP. > > What do you mean by "pattern" here? Regular expression? > > Yes, I assumed it used one. > > However, on second thought, I've concluded that > show-trailing-whitespace doesn't need to know about NBSP at all. > Since NBSP is now indicated on the screen by a color, it is no longer > likely to go unnoticed. So there is no problem with NBSP and > show-trailing-whitespace. That is true by default, but not if the user has set nobreak-char-display to nil. I think show-trailing-whitespace should DTRT even if the user has made such a customization and ensure that the trailing whitespace is indicated. > show-trailing-whitespace ought to know about all characters that will > be indistinguishable on the screen from "end of the line". Agreed! (for non-default values of display options like nobreak-char-display as well) > By the way, I've just found that currently the special face > for NBSP is overriden by show-trailing-whitespace. > > Do you mean, show-trailing-whitespace would override the special face > for NBSP _if_ you modify it to recognize NBSP along with SPC and TAB? > That means my expectation was mistaken; I stand corrected. I think that is good: it means that show-trailing-whitespace will indicate NBSP regardless of nobreak-char-display. > But since show-trailing-whitespace does not need to recognize NBSP, > this isn't a _problem_. I don't think so. (To reiterate: show-trailing-whitespace does need to recognize NBSP in case nobreak-char-display is nil). ... > How about the case of delete-trailing-whitespace? > > That is meant to get rid of junk. It should probably delete > NBSP just like SPC and TAB, since that is useless at the end of a line. It would be surprising if delete-trailing-whitespace deleted anything (e.g. NBSP) that was not displayed specially by show-trailing-whitespace. -- Kevin