From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: How to use non-font-lock face in font-lock-keywords? Date: Wed, 23 Dec 2009 13:59:16 -0800 Message-ID: <68515A69386146CC8C9E28055F6043D4@us.oracle.com> References: <87tyvhv3do.fsf@thinkpad.tsdh.de> <87pr65uzyj.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1261605678 24204 80.91.229.12 (23 Dec 2009 22:01:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Dec 2009 22:01:18 +0000 (UTC) To: "'Lennart Borgman'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 23 23:01:11 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 1NNZGB-0005mN-O7 for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2009 23:00:48 +0100 Original-Received: from localhost ([127.0.0.1]:55536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNZGC-0004X7-3L for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2009 17:00:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNZG6-0004VS-Ez for emacs-devel@gnu.org; Wed, 23 Dec 2009 17:00:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNZG0-0004Nb-GD for emacs-devel@gnu.org; Wed, 23 Dec 2009 17:00:41 -0500 Original-Received: from [199.232.76.173] (port=33758 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNZG0-0004NY-DD for emacs-devel@gnu.org; Wed, 23 Dec 2009 17:00:36 -0500 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:64712) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NNZFz-000564-RW for emacs-devel@gnu.org; Wed, 23 Dec 2009 17:00:36 -0500 Original-Received: from rgminet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by acsinet12.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id nBNM0Vnc031369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Dec 2009 22:00:32 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nBNFlLsR021709; Wed, 23 Dec 2009 22:00:33 GMT Original-Received: from abhmt020.oracle.com by acsmt354.oracle.com with ESMTP id 1210002481261605557; Wed, 23 Dec 2009 13:59:17 -0800 Original-Received: from dradamslap1 (/141.144.169.90) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 23 Dec 2009 13:59:17 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcqEGfCm8RkAG6XeRM690y8HXi+UsgAAJXrA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4B3292FD.0222:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:118799 Archived-At: > >> 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. > > > I think Drew said (quote bold). Nope. Tassilo understood correctly. In the source code, you need (quote (quote bold)), which evaluates to (quote bold). The point is that the face name needs to be quoted in the result. I suggested `((,(concat "\\(?:[`]?" regex "['(]\\)") 1 'bold)) which is equivalent to using (quote (quote bold)) and which produces (quote bold).