From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: Face specifications in font-lock-keywords (part II). Date: Thu, 07 Apr 2005 14:06:49 +0200 Message-ID: <87sm22x02u.fsf@xs4all.nl> References: <87hdiiyiwa.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112875955 29979 80.91.229.2 (7 Apr 2005 12:12:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2005 12:12:35 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 07 14:12:33 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJVrI-00054w-Ba for ged-emacs-devel@m.gmane.org; Thu, 07 Apr 2005 14:11:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJVQa-0008RG-MX for ged-emacs-devel@m.gmane.org; Thu, 07 Apr 2005 07:44:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJVPh-00080G-Ak for emacs-devel@gnu.org; Thu, 07 Apr 2005 07:43:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJVPg-0007yg-NY for emacs-devel@gnu.org; Thu, 07 Apr 2005 07:43:09 -0400 Original-Received: from [194.109.24.29] (helo=smtp-vbr9.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJVna-0005Wq-IH for emacs-devel@gnu.org; Thu, 07 Apr 2005 08:07:50 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr9.xs4all.nl (8.12.11/8.12.11) with ESMTP id j37C772B092751; Thu, 7 Apr 2005 14:07:09 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DJVmi-0002Fv-00; Thu, 07 Apr 2005 14:06:56 +0200 Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Thu, 07 Apr 2005 13:34:08 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 23 X-Virus-Scanned: by XS4ALL Virus Scanner 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:35692 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35692 storm@cua.dk (Kim F. Storm) writes: > Lute Kamstra writes: > >> However, using the fancy FACESPEC directly like this: >> >> ("oele" . '(face font-lock-builtin-face)) >> ("oele" . (0 '(face font-lock-builtin-face))) >> >> works only in the second case. Is this a bug? > > Does removing the quotes work? > > ("oele" . (face font-lock-builtin-face)) > ("oele" . (0 (face font-lock-builtin-face))) No. (I tried.) I think that Font Lock evaluates FACESPEC and uses the result. Maybe it doesn't parse font-lock-keywords correctly so that it doesn't recognize a FACESPEC in this case: ("oele" . '(face font-lock-builtin-face)) Lute.