From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, Alex Schroeder <alex@emacswiki.org>
Subject: Re: font-lock-keywords uses only facename
Date: 03 Jun 2004 23:58:34 -0400 [thread overview]
Message-ID: <m1ise80ylm.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <buofz9cf0rv.fsf@mctpc71.ucom.lsi.nec.co.jp>
>> 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
next prev parent reply other threads:[~2004-06-04 3:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-03 23:48 font-lock-keywords uses only facename Alex Schroeder
2004-06-03 23:55 ` Miles Bader
2004-06-04 3:33 ` Stefan Monnier
2004-06-04 3:41 ` Miles Bader
2004-06-04 3:58 ` Stefan Monnier [this message]
2004-06-04 4:08 ` Miles Bader
2004-06-05 15:58 ` Stefan
2004-06-05 13:47 ` Richard Stallman
2004-06-05 23:03 ` Miles Bader
2004-06-06 22:33 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1ise80ylm.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=alex@emacswiki.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).