From: "Drew Adams" <drew.adams@oracle.com>
To: "'Jason Rumney'" <jasonr@gnu.org>
Cc: 'Eli Zaretskii' <eliz@gnu.org>, spinuvit@gmail.com, emacs-devel@gnu.org
Subject: RE: font-lock-maximum-decoration should be 2 by default?
Date: Sat, 18 Aug 2012 21:39:00 -0700 [thread overview]
Message-ID: <B0F9C5F4EADF48B5873D8A40CA21A38B@us.oracle.com> (raw)
In-Reply-To: <87y5lb5zd4.fsf@gnu.org>
> > It is clear to me that there are users, today, who want
> > less fontification in some modes (I've heard from some of them).
> > This variable gives them a way to get that.
>
> I suspect that those users would be just as well served, if not better
> served due to the lack of support in many modes for font-lock
> levels, by customizing the font-lock faces.
Are you thinking that font lock uses only the `font-lock-*' faces? Or do you
(hopefully) mean any faces at all that happen to be used for font locking?
Either way, font-locking is about a particular _use_ of a face. Customizing
that use is not the same as customizing the face itself - which affects all uses
of it.
Customizing the highlighting used in emacs-lisp-mode should mean just that.
That is not the same as customizing some or all of the faces that happen to be
used for emacs-lisp-mode font-locking.
Sure, if you want to remove some highlighting in a particular mode (e.g., to
simulate a lower decoration level), you can customize some faces used to
highlight that mode. E.g., you can remove some or all of a face's attributes,
or just make it inherit from `default' to nullify it.
But customizing the face itself affects that face wherever it is used. That is
a lousy workaround for customizing the _font-locking_ used in a particular mode.
To the extent that a particular mode defines its own faces and uses no others
for font-locking, yes, you can use such a workaround without affecting other
highlighting elsewhere. But it's still a lousy workaround. Customizing faces
to be like `default' in order to remove their visible font-lock effects is a
poster child for "workaround".
next prev parent reply other threads:[~2012-08-19 4:39 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-17 12:29 font-lock-maximum-decoration and how to make a default font-lock lower than maximal? Vitalie Spinu
2012-08-17 14:29 ` Eli Zaretskii
2012-08-17 14:42 ` Vitalie Spinu
2012-08-17 15:57 ` font-lock-maximum-decoration and how to make a defaultfont-lock " Drew Adams
2012-08-17 19:49 ` font-lock-maximum-decoration should be 2 by default? Vitalie Spinu
2012-08-17 20:26 ` Eli Zaretskii
2012-08-17 20:53 ` Drew Adams
2012-08-18 6:59 ` Eli Zaretskii
2012-08-19 2:32 ` Jason Rumney
2012-08-19 3:13 ` Drew Adams
2012-08-19 3:34 ` Jason Rumney
2012-08-19 4:39 ` Drew Adams [this message]
2012-08-19 10:50 ` Vitalie Spinu
2012-08-19 16:46 ` Eli Zaretskii
2012-08-19 17:33 ` Drew Adams
2012-08-19 10:34 ` Andreas Schwab
2012-08-19 16:48 ` Eli Zaretskii
2012-08-17 20:50 ` Drew Adams
2012-08-17 22:47 ` Vitalie Spinu
2012-08-18 7:03 ` Eli Zaretskii
2012-08-18 10:10 ` Vitalie Spinu
2012-08-21 17:31 ` Stefan Monnier
2012-08-22 16:50 ` Vitalie Spinu
2012-08-26 18:27 ` Drew Adams
2012-08-18 5:10 ` Stephen J. Turnbull
2012-08-18 10:03 ` Vitalie Spinu
2012-08-19 11:10 ` Stephen J. Turnbull
2012-08-19 11:47 ` Vitalie Spinu
2012-08-19 13:23 ` Stephen J. Turnbull
2012-08-17 17:36 ` font-lock-maximum-decoration and how to make a default font-lock lower than maximal? Eli Zaretskii
2012-08-21 17:24 ` Stefan Monnier
2012-08-26 18:26 ` font-lock-maximum-decoration and how to make a default font-locklower " Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B0F9C5F4EADF48B5873D8A40CA21A38B@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=jasonr@gnu.org \
--cc=spinuvit@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.