unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: font-lock latency
Date: Mon, 09 Sep 2002 03:33:36 +0200	[thread overview]
Message-ID: <iluwupw0wwf.fsf@latte.josefsson.org> (raw)
In-Reply-To: <ilu8z2h84ug.fsf@latte.josefsson.org> (Simon Josefsson's message of "Thu, 05 Sep 2002 05:58:47 +0200")

Simon Josefsson <jas@extundo.com> writes:

> Richard Stallman <rms@gnu.org> writes:
>
>>     Doesn't help, the line is still incorrectly highlighted.  I even tried
>>     pressing M-g M-g on every line of the buffer, but it was still wrong.
>>     C-l doesn't help either.  Only way to get it right is to wait a few
>>     (3?) seconds.
>>
>> If some code that runs after 3 seconds gets it right,
>> the first thing to do is find that code,
>> and see how it gets the right results.
>
> The code is `jit-lock-stealth-fontify'.  I now realized that if I set
> `jit-lock-stealth-time' to 0 _before_ I enable font-lock-mode, it does
> what I want -- that is, update the buffer immediately.
>
> jit-lock.el looks like voodoo to me, so I'm not going to try to find
> out what caused the original problem.  Unless it has negative
> consequences, I think the default of `jit-lock-stealth-time' should be
> changed to 0 so that this bug isn't visible.  Assuming noone finds the
> original cause of the problem, that is.

I revoke that suggestion, setting `jit-lock-stealth-fontify' to 0
seems to trigger other problems.  After editing a file for a while
(difficult to reproduce) I get a backtrace like the below when
pressing any key.

I am now running with j-l-s-f set to 1 even though it annoys me, and I
haven't seen the backtrace yet.

Debugger entered--Lisp error: (args-out-of-range 6 4)
  font-lock-fontify-keywords-region(35308 35328 nil)
  font-lock-default-fontify-region(35308 35317 nil)
  font-lock-fontify-region(35308 35317)
  run-hook-with-args(font-lock-fontify-region 35308 35317)
  jit-lock-fontify-now(35308 35808)
  jit-lock-function(35308)

      reply	other threads:[~2002-09-09  1:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-02 21:50 font-lock latency Simon Josefsson
2002-09-03  5:01 ` Eli Zaretskii
2002-09-03 10:21   ` Simon Josefsson
2002-09-03 16:17     ` Eli Zaretskii
2002-09-03 16:41       ` Simon Josefsson
2002-09-05  2:47         ` Richard Stallman
2002-09-05  3:58           ` Simon Josefsson
2002-09-09  1:33             ` Simon Josefsson [this message]

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=iluwupw0wwf.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=bug-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 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).