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 23:08:42 +0100 Message-ID: References: <87tyvhv3do.fsf@thinkpad.tsdh.de> <87pr65uzyj.fsf@thinkpad.tsdh.de> <68515A69386146CC8C9E28055F6043D4@us.oracle.com> 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 1261606221 25806 80.91.229.12 (23 Dec 2009 22:10:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Dec 2009 22:10:21 +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 23:10:14 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 1NNZPH-0001Le-Vv for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2009 23:10:12 +0100 Original-Received: from localhost ([127.0.0.1]:44858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNZPI-0001Ao-3j for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2009 17:10:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNZOF-0000pN-Tf for emacs-devel@gnu.org; Wed, 23 Dec 2009 17:09:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNZOB-0000oh-Dr for emacs-devel@gnu.org; Wed, 23 Dec 2009 17:09:07 -0500 Original-Received: from [199.232.76.173] (port=36282 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNZOB-0000oe-8d for emacs-devel@gnu.org; Wed, 23 Dec 2009 17:09:03 -0500 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:48612) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NNZOA-0006Kr-VR for emacs-devel@gnu.org; Wed, 23 Dec 2009 17:09:03 -0500 Original-Received: by yxe29 with SMTP id 29so21076548yxe.14 for ; Wed, 23 Dec 2009 14:09:02 -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:cc:content-type :content-transfer-encoding; bh=rzTjZ60d6Q5QTRLcICo0Xj0mAIkY5Ap+mw2CTHO89Po=; b=QjdKPJ5XoreBiH1jsCCPNJnX2TxU96xKZ0D/vf4jCqfLyn+QM9vO7N3xJxuyLLCexA YhE36ybia8OlE9fv5muE8ADDDKx+bAe49pqQSVfiXdcMEzLBGeBvZ/F3ZgVbFU3p8pdy W2D3v1hA1Wk2D13yZiSnID3RKrTvavf+20Bk4= 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 :cc:content-type:content-transfer-encoding; b=Gg0ecPJ2d6aWYw8QYJclJt7C4wd+Tf654WLFgTU6McCCFzCW+vsi0BwZJi519HvDKZ Ja+7Zgv+7UqmjSHE0TER0hB7MZ7sNaleF0AvnDzzOHrd8oCbHQKmzhd/1kOBeXgwZMB+ ijAf6TSPHzXjEydnEah5xZZM5Lmieu/O10HQI= Original-Received: by 10.101.53.10 with SMTP id f10mr4633434ank.42.1261606142266; Wed, 23 Dec 2009 14:09:02 -0800 (PST) In-Reply-To: <68515A69386146CC8C9E28055F6043D4@us.oracle.com> 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:118800 Archived-At: On Wed, Dec 23, 2009 at 10:59 PM, Drew Adams wrote: >> >> 1. `font-lock-function-name-face' is a variable (whose >> >> =C2=A0 =C2=A0value is the symbol `font-lock-function-name-face'). >> >> =C2=A0 =C2=A0There is no variable `bold'. >> >> >> >> 2. When you use >> >> =C2=A0 =C2=A0(list (list (concat "\\(?:[`]?" regex "['(]\\)") 1 'bold= )))) >> >> >> >> =C2=A0 =C2=A0you get a list with the face name (symbol), but it is no= t 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 (quo= te > bold). I see. Wrong context.