From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: highlighting non-ASCII characters Date: Mon, 29 Mar 2010 14:32:33 -0700 Message-ID: References: <6932BBFEB09A4BA09156ED7F598569CE@us.oracle.com> <87pr2uv8e1.fsf@lifelogs.com> <87aatyuj9s.fsf@lifelogs.com><87pr2rj89j.fsf@lifelogs.com> <87ljdeke5k.fsf@lifelogs.com><87eij3ht2c.fsf@lifelogs.com> <87aatqj0ti.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269898580 10838 80.91.229.12 (29 Mar 2010 21:36:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Mar 2010 21:36:20 +0000 (UTC) To: "'Ted Zlatanov'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 29 23:36:16 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 1NwMd6-0004Kc-2K for ged-emacs-devel@m.gmane.org; Mon, 29 Mar 2010 23:36:16 +0200 Original-Received: from localhost ([127.0.0.1]:56134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwMd5-0007b4-Eh for ged-emacs-devel@m.gmane.org; Mon, 29 Mar 2010 17:36:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwMaY-0005g8-Av for emacs-devel@gnu.org; Mon, 29 Mar 2010 17:33:38 -0400 Original-Received: from [140.186.70.92] (port=44820 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwMaW-0005f0-Oo for emacs-devel@gnu.org; Mon, 29 Mar 2010 17:33:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwMaT-0003j2-DS for emacs-devel@gnu.org; Mon, 29 Mar 2010 17:33:36 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:49663) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwMaT-0003iu-7U for emacs-devel@gnu.org; Mon, 29 Mar 2010 17:33:33 -0400 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by acsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o2TLXTIY022753 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 29 Mar 2010 21:33:31 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o2TLXRuE004917; Mon, 29 Mar 2010 21:33:28 GMT Original-Received: from abhmt005.oracle.com by acsmt353.oracle.com with ESMTP id 121286501269898353; Mon, 29 Mar 2010 14:32:33 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 29 Mar 2010 14:32:32 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87aatqj0ti.fsf@lifelogs.com> Thread-Index: AcrPhTWUWVBwRGh3QvGjrrNvGMepwQAAJnew X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4BB11CA9.0100:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:122880 Archived-At: > DA> But it occurred to me that besides different categories > DA> of such critters there might be different levels of > DA> fontification details that users might want to see. > > DA> For example, for some users or for some purposes, it > DA> might be useful to see different kinds of quote marks > DA> distinguished (e.g. different kinds of curly quotes > DA> that might be homoglyphs or curly vs straight quotes, > DA> which are not homoglyphs). For other users or for other > DA> purposes such highlighting would be a distraction. > > I'll set up a flexible mechanism, probably patterned after > whitespace.el, to do this kind of highlighting. So the users will be > able to extend it if needed. > > I don't know about curly vs. straight quotes. I don't think that's a > significant problem, whereas a Cyrillic K in Roman text can actually > cause problems and security compromises. I'm not against the idea, I > have just never seen it become an issue, and there's a million ways to > combine quotation marks depending on the context. What's the specific > case that you're thinking of? Nothing special. I know that in Framemaker we consistently replace all curly quotes with straight quotes, mainly so that copy+paste of doc examples will work in applications (e.g. SQL). The point was that besides multiple kinds of curly-quote characters that are true homoglyphs (dunno if such exist; I'm assuming they do), it can also be useful to highlight a character (e.g. curly quote) that is similar to but not identical to another character (e.g. straight quote). That use would be contextual, of course: you might turn it on the same way you might turn on an on-the-fly spell-check, to let you know whenever you type or paste the wrong char. Probably this need would be taken care of by what you described in your first paragraphs (not quoted here): being able to highlight similar looking chars that are not necessarily exact homoglyphs.