all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Mode-specific font lock delays
Date: Sun, 04 Sep 2016 09:34:05 -0400	[thread overview]
Message-ID: <jwvfupfeqte.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: CALG+76eqfNhgS6NhD98tFf3OVCUx4Nm+=NG2GCW9QxYu7hVP8w@mail.gmail.com

> 1) Changing the variable is not mode-specific, but changes how
> font-lock operates on all buffers. That's not right as I want the
> increased defer time to only apply to this mode's buffers.

Indeed, it was designed as a (global) user-option, not something decided
by the major mode.

> 2) When a file is opened, there is a flicker as font-lock waits for
> the timeout before highlighting the buffer. It would be much better if
> there was no delay for the first highlighting pass.

Hmmm... jit-lock currently doesn't distinguish the "first pass" at all.
Also I'm not sure if ignoring the jit-lock-defer for the "first pass"
would result in good behavior for you: it'd be laggy not just when
displaying the window the first time, but also everytime a new part of
the buffer becomes visible.

> Can these two problems be solved?

So far the experience has been that font-lock can be made fast enough
that those things aren't needed.


        Stefan




  reply	other threads:[~2016-09-04 13:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-04  5:01 Mode-specific font lock delays Björn Lindqvist
2016-09-04 13:34 ` Stefan Monnier [this message]
2016-09-04 19:12   ` Björn Lindqvist
2016-09-05  2:51     ` Stefan Monnier

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=jwvfupfeqte.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@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 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.