From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: How to use non-font-lock face in font-lock-keywords? Date: Wed, 23 Dec 2009 21:31:31 +0100 Message-ID: <87tyvhv3do.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261600315 8114 80.91.229.12 (23 Dec 2009 20:31:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Dec 2009 20:31:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 23 21:31:48 2009 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.50) id 1NNXs3-0008Ma-FN for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2009 21:31:47 +0100 Original-Received: from localhost ([127.0.0.1]:54677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNXs3-00088m-Kc for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2009 15:31:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNXrw-00086m-5D for emacs-devel@gnu.org; Wed, 23 Dec 2009 15:31:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNXrr-0007zI-F6 for emacs-devel@gnu.org; Wed, 23 Dec 2009 15:31:39 -0500 Original-Received: from [199.232.76.173] (port=36505 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNXrr-0007z4-5M for emacs-devel@gnu.org; Wed, 23 Dec 2009 15:31:35 -0500 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]:44059) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NNXrr-0002ly-CU for emacs-devel@gnu.org; Wed, 23 Dec 2009 15:31:35 -0500 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id AA405C6D0D for ; Wed, 23 Dec 2009 15:31:34 -0500 (EST) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Wed, 23 Dec 2009 15:31:34 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:subject:date:message-id:mime-version:content-type; s=smtpout; bh=OwchIytNz0IjENrobjBYr9+atJM=; b=gHvoKIYVwGjfFz8XhEtWuw/AW37FIJUSQLQY7l/WXXi/CSronLYJEXnuVJemfPF1WFQ/CoIbpc/XgZDagzsubBzByfaGU9XiIY1WmWiY0vN1cTExZKjnxg7MtnNA4zE4TTWfHNK4Q/JzzvcFutrFgw+HwsTdDW0Yn1Yge9/uxiI= X-Sasl-enc: aKV/5xV3KDh3i/d4OZbK15sLQetDUzTDfMO5CwuYSM5+ 1261600294 Original-Received: from thinkpad.tsdh.de (p54AF2486.dip0.t-ipconnect.de [84.175.36.134]) by mail.messagingengine.com (Postfix) with ESMTPA id C6F782C1AE for ; Wed, 23 Dec 2009 15:31:33 -0500 (EST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) Mail-Copies-To: never X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:118795 Archived-At: Hi all, I have a problem with the specification of faces in font-lock entries. When I use either --8<---------------cut here---------------start------------->8--- (defparameter greql-fontlock-keywords-doc (let ((regex "foo")) (list (list (concat "\\(?:[`]?" regex "['(]\\)") 1 'font-lock-function-name-face)))) --8<---------------cut here---------------end--------------->8--- or --8<---------------cut here---------------start------------->8--- (defparameter greql-fontlock-keywords-doc (let ((regex "foo)) (list (list (concat "\\(?:[`]?" regex "['(]\\)") 1 font-lock-function-name-face)))) --8<---------------cut here---------------end--------------->8--- (the difference is the quoting of f-l-function-name-face) and then use this variable as single entry in `font-lock-defaults', it works as expected. But when I use 'bold instead of some font-lock-*-face, nothing is fontified. I also tried using a FACESPEC (face 'bold), or defined a variable greql-doc-face with the value 'bold and used the variable as FACESPEC, neither of those did work. :-( Why? What do I need to do to use an arbitrary face? Bye, Tassilo