From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: font-lock-keywords uses only facename Date: 03 Jun 2004 23:58:34 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87oeo0i4p1.fsf@emacswiki.org> <20040603235508.GA26475@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086321544 30139 80.91.224.253 (4 Jun 2004 03:59:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Jun 2004 03:59:04 +0000 (UTC) Cc: emacs-devel@gnu.org, Alex Schroeder Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jun 04 05:58:57 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BW5r7-0004wW-00 for ; Fri, 04 Jun 2004 05:58:57 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BW5r6-00068B-00 for ; Fri, 04 Jun 2004 05:58:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BW5rT-0004LB-D3 for emacs-devel@quimby.gnus.org; Thu, 03 Jun 2004 23:59:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BW5rL-0004K4-UD for emacs-devel@gnu.org; Thu, 03 Jun 2004 23:59:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BW5rI-0004IX-Mn for emacs-devel@gnu.org; Thu, 03 Jun 2004 23:59:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BW5rI-0004IG-KZ for emacs-devel@gnu.org; Thu, 03 Jun 2004 23:59:08 -0400 Original-Received: from [206.47.199.163] (helo=simmts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BW5ql-0004Ts-Ju; Thu, 03 Jun 2004 23:58:35 -0400 Original-Received: from empanada.local ([67.70.165.15]) by simmts5-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20040604035832.WDVR3387.simmts5-srv.bellnexxia.net@empanada.local>; Thu, 3 Jun 2004 23:58:32 -0400 Original-Received: by empanada.local (Postfix, from userid 502) id CCAA5226848; Thu, 3 Jun 2004 23:58:34 -0400 (EDT) Original-To: Miles Bader In-Reply-To: Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24509 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24509 >> If I were writing it today, I'd just do an `eval' as did Simon Marshall: >> it's simpler and there is no loss of generality. And adding a quote is >> really not that difficult. > Does anyone ever use the eval feature, except old code that has `face' > variables (a practice which seems out of favor these days)? Well, the "eval feature" is used extensively at many places, yes. If you mean "use `eval' even for trivial expressions composed of nothing more than a symbol", I've used it as a poor man's buffer-local faces a few times. But admittedly, it's only rarely used. > What's certainly the case is that it often causes confusion, although > admittedly some of this is due to font-lock's `standard' faces using > variables and faces with exactly the same name. Right, I think if variables had names like `font-lock-foo-face' while their content was `font-lock-foo' it would have helped a bit. Another way to avoid the confusion would have been to introduce a whole new self-evaluating datatype for faces rather than use symbols. Stefan