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:27:48 +0200 Organization: JURTA Message-ID: <874ok6h0gz.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269423972 14971 80.91.229.12 (24 Mar 2010 09:46:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Mar 2010 09:46:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 24 10:46:08 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 1NuNA7-0008Jm-Mb for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 10:46:07 +0100 Original-Received: from localhost ([127.0.0.1]:53378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuNA2-00082q-Hr for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 05:46:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuN5G-0006Wz-2o for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:41:06 -0400 Original-Received: from [140.186.70.92] (port=52304 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuN5D-0006MW-Pt for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:41:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuN0I-00025L-SH for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:36:01 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:59749 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuN0I-000254-Mh for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:35:58 -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 345C03F40A8; Wed, 24 Mar 2010 11:35:52 +0200 (EET) In-Reply-To: <8739zryv6l.fsf_-_@lifelogs.com> (Ted Zlatanov's message of "Tue, 23 Mar 2010 09:22:26 -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:122599 Archived-At: > I can set up font-lock for myself, of course, but was wondering > if Emacs has a simple built-in way to highlight them. This is what `hi-lock.el' is intended for. You can put (highlight-regexp "[[:nonascii:]]" 'escape-glyph) to any hook you want with any face you want. Or to add file-local patterns like Hi-lock:(("[[:nonascii:]]" (0 (quote escape-glyph) t))). -- Juri Linkov http://www.jurta.org/emacs/