From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Face specifications in font-lock-keywords. Date: Wed, 06 Apr 2005 13:22:38 -0400 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 1112808278 29864 80.91.229.2 (6 Apr 2005 17:24:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2005 17:24:38 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 06 19:24:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJEFE-0002Xb-G0 for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2005 19:23:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJDoN-0002CN-2E for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2005 12:55:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJDnv-00029D-N2 for emacs-devel@gnu.org; Wed, 06 Apr 2005 12:55:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJDnv-00027r-94 for emacs-devel@gnu.org; Wed, 06 Apr 2005 12:54:59 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJEFK-00046V-Os for emacs-devel@gnu.org; Wed, 06 Apr 2005 13:23:18 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id B69AD340003; Wed, 6 Apr 2005 13:22:50 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 2C1574AC211; Wed, 6 Apr 2005 13:22:39 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 18694E6C1F; Wed, 6 Apr 2005 13:22:39 -0400 (EDT) Original-To: Ralf Angeli In-Reply-To: (Ralf Angeli's message of "Wed, 06 Apr 2005 18:22:59 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.83, requis 5, autolearn=not spam, AWL 0.07, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca 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:35644 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35644 >> 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))) It doesn't do the same. Your example only affects the `face' property, whereas what the doc is talking about is how to set several text properties, additionally to the `face' property (e.g. thinks like `keymap', `display' `invisible', ...). > This is not covered in the manual and doc string yet, or am I missing > something? It's probably discussed in the section talking about faces. It's not specific to font-lock at all. Stefan