unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Jason Rumney'" <jasonr@gnu.org>, "'Eli Zaretskii'" <eliz@gnu.org>
Cc: spinuvit@gmail.com, emacs-devel@gnu.org
Subject: RE: font-lock-maximum-decoration should be 2 by default?
Date: Sat, 18 Aug 2012 20:13:27 -0700	[thread overview]
Message-ID: <28D1904F32094411B543B748956D9F85@us.oracle.com> (raw)
In-Reply-To: <877gsv7grw.fsf@gnu.org>

> >> > > Interesting. I am curious of reasons for that.
> >> > 
> >> > Performance.  You don't gain much by omitting some fontifications
> >> > nowadays.  The variable was introduced to get snappier redisplay;
> >> > since the need for that is no longer valid, the default 
> >> > was set to t.
> >> 
> >> Do you have any proof of that being _the_ reason it was 
> >> introduced: just for performance?
> >
> > No proof, just my faulty memory.
> 
> In this case, not faulty:
> 
> ! (defvar font-lock-maximum-decoration nil
...
> ! (defvar font-lock-maximum-decoration t
...
> 1996-08-11  Richard Stallman  <rms@psilocin.gnu.ai.mit.edu>
> 	* Version 19.33 released.
> 1997-09-15  Richard Stallman  <rms@psilocin.gnu.ai.mit.edu>
> 	* Version 20.1 released.
> 
> (I thought there was also a 19.34, but that might be my faulty memory,
> or maybe it was on a branch, so doesn't show up in the changelogs).

Uh, where do you see ANYTHING there that supports the claim that "the" reason
why the variable was _introduced_ in the first place was "to get snappier
display"?

What you show supports the fact that the default value was changed from nil to t
in 1997.  Nothing more, AFAICT.  The question is whether the variable and its
levels exist _only_ to provide "snappier redisplay" (by choosing a lower level).

The variable is intended to give users a choice of different amounts of
font-lock decoration.  A user can want more or less decoration for any number of
reasons.  In the old days performance was no doubt one of the possible reasons.

If performance were the only reason for this variable, then those who want to
remove the variable now might have an argument.  (And in that case it could even
have been removed in 1997.)

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.

Yes, a default of `t' hides this possibility from some users, no doubt.  And
yes, there are too few modes that actually provide different levels.

And yes, one could perhaps dream up a better approach than levels.  But while
waiting for the better approach (conjectured by Stefan long ago), this variable
has the merit of providing users some control over the amount of decoration.




  reply	other threads:[~2012-08-19  3:13 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 [this message]
2012-08-19  3:34                   ` Jason Rumney
2012-08-19  4:39                     ` Drew Adams
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

  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=28D1904F32094411B543B748956D9F85@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 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).