From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: How to use non-font-lock face in font-lock-keywords? Date: Wed, 23 Dec 2009 22:50:07 +0100 Message-ID: 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1261605099 22297 80.91.229.12 (23 Dec 2009 21:51:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Dec 2009 21:51:39 +0000 (UTC) To: Drew Adams , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 23 22:51:32 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 1NNZ6L-0008Ju-TK for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2009 22:50:38 +0100 Original-Received: from localhost ([127.0.0.1]:53431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNZ6M-0004G9-4H for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2009 16:50:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNZ6G-0004Dy-J0 for emacs-devel@gnu.org; Wed, 23 Dec 2009 16:50:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNZ6C-00049F-EC for emacs-devel@gnu.org; Wed, 23 Dec 2009 16:50:32 -0500 Original-Received: from [199.232.76.173] (port=47044 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNZ6C-00049B-Aw for emacs-devel@gnu.org; Wed, 23 Dec 2009 16:50:28 -0500 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:63466) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NNZ6C-0003Zm-GB for emacs-devel@gnu.org; Wed, 23 Dec 2009 16:50:28 -0500 Original-Received: by yxe29 with SMTP id 29so21039463yxe.14 for ; Wed, 23 Dec 2009 13:50:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=WKgsBx/xANldEVSaHVvzbDn4i8Pv2UnfkpSBVGufTh0=; b=sNfT8Avdmgfqxub07F5/0qlp3eE2NvLUBSn3LDIpksCdGG4a9WGsM1Xxt905nMeOCZ k2FCS573ZxRpzTx0dgr25FwMplus53B1NNvlCZCfLMblbPZumu8i/dhFYL4CFxPANXt4 0zUH7am5YInMYnDPde5Tg2AxzeBmqD5GDQX6I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=UWtTQJwcpSrAXOMJOQSpdT7QikJ2/un1Q4jZZ04EnXSJCyAc8e5r8c2ELXGyBS/Q8B nHCexRg11Ck2TVRV+WRQK8QPcSwiqgam+gc5QCmHkTpbdFDnzbtVUlocueMgAe6Hk51r BWVRsdMY/YFrDb44B1eg7HwV2hU7lv6bDpYLg= Original-Received: by 10.101.53.10 with SMTP id f10mr4609589ank.42.1261605027123; Wed, 23 Dec 2009 13:50:27 -0800 (PST) In-Reply-To: <87pr65uzyj.fsf@thinkpad.tsdh.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:118798 Archived-At: On Wed, Dec 23, 2009 at 10:45 PM, Tassilo Horn wro= te: > "Drew Adams" writes: > > Hi Drew, > >>> Why? =C2=A0What 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 symb= ol >> `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). > Thanks a ton! > Tassilo > > >