From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Gnus not escaping NBSP and soft-hyphen Date: Wed, 22 Jun 2005 16:32:07 +0300 Organization: JURTA Message-ID: <87oe9yh45k.fsf@jurta.org> References: <200506212138.47101.pogonyshev@gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119450186 3972 80.91.229.2 (22 Jun 2005 14:23:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2005 14:23:06 +0000 (UTC) Cc: monnier@iro.umontreal.ca, pogonyshev@gmx.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 22 16:23:04 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dl65t-0007Ts-Qp for ged-emacs-devel@m.gmane.org; Wed, 22 Jun 2005 16:20:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dl6CX-0006xH-C9 for ged-emacs-devel@m.gmane.org; Wed, 22 Jun 2005 10:27:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dl6Bu-0006qD-JW for emacs-devel@gnu.org; Wed, 22 Jun 2005 10:26:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dl6Bl-0006lJ-Eb for emacs-devel@gnu.org; Wed, 22 Jun 2005 10:26:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dl6Bk-0006jX-5j for emacs-devel@gnu.org; Wed, 22 Jun 2005 10:26:48 -0400 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dl67A-0006Av-Lo for emacs-devel@gnu.org; Wed, 22 Jun 2005 10:22:04 -0400 Original-Received: from mail.neti.ee (80-235-32-88-dsl.mus.estpak.ee [80.235.32.88]) by Relayhost1.neti.ee (Postfix) with ESMTP id 916AE3CA1; Wed, 22 Jun 2005 17:18:49 +0300 (EEST) Original-To: emacs-devel@gnu.org In-Reply-To: (=?iso-8859-1?Q?Ga=EBtan?= LEURENT's message of "Wed, 22 Jun 2005 00:41:31 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:39305 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39305 > Maybe a more systematic way to proceed would be to disable NBSP-escaping > in read-only buffers (but it could sometimes be confusing, too). Disabling NBSP highlighting in read-only buffers makes some sense. The reason is that in read-only buffers users usually can't fix NBSP (if it is wrong). I used such a rule for enabling show-trailing-whitespace to show trailing whitespace only in editable buffers. But sometimes this rule fails: some read-only buffers can be switched to edit mode, some editable buffers are not writable. So finally I reached the rule that sets the buffer-local show-trailing-whitespace only on files in specified subdirectories. This shows that show-trailing-whitespace is flexible enough to allow arbitrary customization, but escape-glyph is not. There is a need for a buffer-local variable similar to show-trailing-whitespace to enable/disable highlighting of control characters and nbsp with escape-glyph face on a per-buffer basis. -- Juri Linkov http://www.jurta.org/emacs/