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: Thu, 25 Mar 2010 09:12:36 +0200 Organization: JURTA Message-ID: <87iq8l3r0r.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> <87pr2uv8e1.fsf@lifelogs.com> <87aatyuj9s.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269502351 15405 80.91.229.12 (25 Mar 2010 07:32:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Mar 2010 07:32:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 25 08:32:27 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 1NuhYI-0007Yk-UR for ged-emacs-devel@m.gmane.org; Thu, 25 Mar 2010 08:32:27 +0100 Original-Received: from localhost ([127.0.0.1]:50810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuhYI-0007FD-Cb for ged-emacs-devel@m.gmane.org; Thu, 25 Mar 2010 03:32:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuhRU-0004F0-5h for emacs-devel@gnu.org; Thu, 25 Mar 2010 03:25:24 -0400 Original-Received: from [140.186.70.92] (port=32832 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuhRQ-0004Db-Ux for emacs-devel@gnu.org; Thu, 25 Mar 2010 03:25:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuhRK-0003dk-OK for emacs-devel@gnu.org; Thu, 25 Mar 2010 03:25:20 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:56669 helo=mx2.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuhRJ-0003dU-Vm for emacs-devel@gnu.org; Thu, 25 Mar 2010 03:25:14 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.30.101.cable.starman.ee [82.131.30.101]) by mx2.starman.ee (Postfix) with ESMTP id A474E3F40A5; Thu, 25 Mar 2010 09:25:08 +0200 (EET) In-Reply-To: <87aatyuj9s.fsf@lifelogs.com> (Ted Zlatanov's message of "Wed, 24 Mar 2010 05:05:35 -0500") 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:122641 Archived-At: > show-out-of-place-glyphs: alist; keys can be 'ascii, 'nonascii, > or 'homoglyphs. Maybe we can also allow a general regex. > > Values can be 'always, 'majority-paragraph, majority-line, > 'minority-line, 'minority-paragraph, 'suspicious (with the same rules I > proposed earlier). A function should also be possible. Optional second > value is a face, defaulting to `out-of-place-glyph'. If you are going to implement this package, I suggest you to look at whitespace.el: how it defines where to highlight whitespace character, how it defines rules for different classes of whitespace. I don't propose to extend it to visualize suspicious characters and homoglyphs in addition to whitespace, but really it has very similar functionality. -- Juri Linkov http://www.jurta.org/emacs/