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: highlighting non-ASCII characters Date: Wed, 24 Mar 2010 11:28:16 +0200 Organization: JURTA Message-ID: <877hp2e62b.fsf@mail.jurta.org> References: <87sk7vllgj.fsf@mail.jurta.org> <87hbo81onq.fsf@lifelogs.com> <87k4t4zb5l.fsf@lifelogs.com> <87r5ncxp4z.fsf@lifelogs.com> <87hbo8tf4i.fsf@turtle.gmx.de> <87hbo8xis5.fsf@lifelogs.com> <87aau0t7uy.fsf@turtle.gmx.de> <87sk7svyam.fsf@lifelogs.com> <87vdcngws4.fsf@mail.jurta.org> <8739zryv6l.fsf_-_@lifelogs.com> <6932BBFEB09A4BA09156ED7F598569CE@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269423888 14640 80.91.229.12 (24 Mar 2010 09:44:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Mar 2010 09:44:48 +0000 (UTC) Cc: 'Ted Zlatanov' , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 24 10:44:44 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NuN8l-0007er-5m for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 10:44:43 +0100 Original-Received: from localhost ([127.0.0.1]:52873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuN8j-0007gr-PA for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 05:44:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuN5E-0006WN-54 for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:41:04 -0400 Original-Received: from [140.186.70.92] (port=52304 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuN5C-0006MW-Gp for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:41:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuN0J-00025c-5d for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:36:01 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:59758 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuN0J-00025D-0X for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:35:59 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.29.143.cable.starman.ee [82.131.29.143]) by mx1.starman.ee (Postfix) with ESMTP id B7AED3F40B5; Wed, 24 Mar 2010 11:35:52 +0200 (EET) In-Reply-To: (Stefan Monnier's message of "Tue, 23 Mar 2010 20:45:48 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:122598 Archived-At: > What I'm saying is that there are two issues: non-ASCII chars in general > (which I personally don't want to display in any special manner: > they're just as normal as ASCII chars), and then there are "chars that > are out of place or that may not be what they look like", such as the > weird "K" in the other message's "OK" (which to me, is similar to the > NBSP char in that it is meant to be displayed in the same way as some > other char, so we want to call the attention of the user to the > difference). There is another case where non-highlighted out of place chars cause problems: http://thread.gmane.org/gmane.emacs.devel/121494 When I look at NBSP chars in cc-engine.el, I see them as `EQUALS SIGN' (actually `C-u C-x =' says they are `BOX DRAWINGS DOUBLE HORIZONTAL'). That's because of the wrong coding used (there is no coding: tag, so they are displayed with my default koi8). When Miles reported this problem with NBSP chars in cc-engine.el, I found nothing suspicious because equals-sign chars don't look out of place. And only when I grepped for non-ASCII chars, I discovered them. What should be a heuristics to highlight these problematic chars that look like normal chars? -- Juri Linkov http://www.jurta.org/emacs/