From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel Subject: Re: Face specifications in font-lock-keywords. Date: Wed, 06 Apr 2005 18:22:59 +0200 Message-ID: References: <87y8bwf5px.fsf@xs4all.nl> <871x9oc9i9.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112805450 22283 80.91.229.2 (6 Apr 2005 16:37:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2005 16:37:30 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 06 18:37:27 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJDVV-0003Jf-Te for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2005 18:35:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJD4d-000118-Sm for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2005 12:08:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJD1R-0007BC-Pr for emacs-devel@gnu.org; Wed, 06 Apr 2005 12:04:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJD1Q-0006yd-9e for emacs-devel@gnu.org; Wed, 06 Apr 2005 12:04:52 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DJDKj-0007F2-DN for emacs-devel@gnu.org; Wed, 06 Apr 2005 12:24:49 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DJDHg-0001Gz-W9 for emacs-devel@gnu.org; Wed, 06 Apr 2005 18:21:41 +0200 Original-Received: from iwi190.iwi.uni-sb.de ([134.96.72.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2005 18:21:40 +0200 Original-Received: from angeli by iwi190.iwi.uni-sb.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2005 18:21:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 20 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: iwi190.iwi.uni-sb.de User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:syBBF+fHtdqqsPeCijdxYRsmpaU= 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:35641 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35641 * Kim F. Storm (2005-04-06) writes: > I think (face FACE [PROP VAL]...) would be clearer. AFAICS the "face FACE" part isn't even necessary; you can pass a property/value-only list to `font-lock-keywords' and it will work as well (you might have to disable global-font-lock-mode before trying this): (progn (pop-to-buffer (get-buffer-create "*foo*")) (insert "foo") (setq font-lock-keywords '(("foo" 0 '(:foreground "green")))) (font-lock-fontify-keywords-region (point-min) (point-max))) This is not covered in the manual and doc string yet, or am I missing something? -- Ralf