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: Re: How to use non-font-lock face in font-lock-keywords? Date: Wed, 23 Dec 2009 22:45:24 +0100 Message-ID: <87pr65uzyj.fsf@thinkpad.tsdh.de> References: <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 1261604746 21322 80.91.229.12 (23 Dec 2009 21:45:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Dec 2009 21:45:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 23 22:45:39 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 1NNZ1X-0005pR-8B for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2009 22:45:39 +0100 Original-Received: from localhost ([127.0.0.1]:43051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNZ1X-0002FT-Ct for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2009 16:45:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNZ1R-0002DL-AM for emacs-devel@gnu.org; Wed, 23 Dec 2009 16:45:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNZ1M-00028z-IN for emacs-devel@gnu.org; Wed, 23 Dec 2009 16:45:32 -0500 Original-Received: from [199.232.76.173] (port=49575 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNZ1M-00028w-D1 for emacs-devel@gnu.org; Wed, 23 Dec 2009 16:45:28 -0500 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]:50372) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NNZ1M-0002q7-Mo for emacs-devel@gnu.org; Wed, 23 Dec 2009 16:45:28 -0500 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id C88C1C5C12; Wed, 23 Dec 2009 16:45:27 -0500 (EST) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Wed, 23 Dec 2009 16:45:27 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:cc:subject:references:date:in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=paMM7dkK83ElVwT5AUuZGDVHICM=; b=SAEnZGzywhRm3M1huYDuF2Ez67NpZnnto1nRNF3Bl83Rt+Dq0eEHLE7yTaM7ix0KHl4U7OImVJDdlCBqElj4xFdCChPew1NFVzIvJgCoWRWEpO6jvS9kiYQEnkGZ3VtnpygLLxkiAoUHoIJJRgN6TGulSWb/wEQoPnf9i3pGw60= X-Sasl-enc: jqhbPfaBaa8XCv1ZfoTP6xaMaLTO3EFBLRYeZ8OpA8Ip 1261604727 Original-Received: from thinkpad.tsdh.de (p54AF2486.dip0.t-ipconnect.de [84.175.36.134]) by mail.messagingengine.com (Postfix) with ESMTPA id 9FF192C235; Wed, 23 Dec 2009 16:45:26 -0500 (EST) Mail-Followup-To: "Drew Adams" , In-Reply-To: (Drew Adams's message of "Wed, 23 Dec 2009 13:14:41 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) 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:118797 Archived-At: "Drew Adams" writes: Hi Drew, >> Why? What do I need to do to use an arbitrary face? > > Without looking closely at your code, my guess is this: > > 1. `font-lock-function-name-face' is a variable (whose value is the symbol > `font-lock-function-name-face'). There is no variable `bold'. > > 2. When you use > (list (list (concat "\\(?:[`]?" regex "['(]\\)") 1 'bold)))) > > you get a list with the face name (symbol), but it is not quoted. You are right, I have to use (quote 'bold), and then it works. Thanks a ton! Tassilo