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. Date: Wed, 06 Apr 2005 16:16:52 +0200 Message-ID: <87k6ngf0rv.fsf@xs4all.nl> 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 1112797319 22417 80.91.229.2 (6 Apr 2005 14:21:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2005 14:21:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 06 16:21:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJBJw-0005M6-U4 for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2005 16:15:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJAt3-0005Ht-L2 for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2005 09:48:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJAsa-0005FO-HO for emacs-devel@gnu.org; Wed, 06 Apr 2005 09:47:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJAsZ-0005EM-B9 for emacs-devel@gnu.org; Wed, 06 Apr 2005 09:47:35 -0400 Original-Received: from [194.109.24.26] (helo=smtp-vbr6.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJBLL-0003e3-7A for emacs-devel@gnu.org; Wed, 06 Apr 2005 10:17:19 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr6.xs4all.nl (8.12.11/8.12.11) with ESMTP id j36EGqTS044202; Wed, 6 Apr 2005 16:16:52 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DJBKu-0002CS-00; Wed, 06 Apr 2005 16:16:52 +0200 Original-To: Stefan Monnier In-Reply-To: <871x9oc9i9.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 06 Apr 2005 09:37:50 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 26 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:35632 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35632 Stefan Monnier writes: >> (I'm updating the node Search-based Fontification in the lisp manual.) >> The lisp manual says that a FACESPEC can be a list of the form > >> (face FACE PROP1 VAL1 PROP2 VAL2...) > >> whereas the docstring of font-lock-keywords says that this can be a >> list of the form: > >> (face VAL1 PROP2 VAL2 PROP3 VAL3 ...) > >> The latter is obviously wrong. But is the former correct? > > To me both are equivalent and correct. What's the problem exactly? Ah yes, now that you mention it: you could see them as equivalent. The problem is that the second form suggests that VAL1 is of the same type as VAL2 and VAL3, which is not the case. > Regarding the discrepancy, I'd suggest we use the first form since > it's a bit more explicit. Ok. Lute.