GNU bug report logs - #14886
Slowdown on font-lock-fontify-buffer

Previous Next

Package: emacs;

Reported by: Juanma Barranquero <lekktu <at> gmail.com>

Date: Tue, 16 Jul 2013 23:05:02 UTC

Severity: normal

Found in version 24.3.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 14886 <at> debbugs.gnu.org
Subject: bug#14886: Fwd: A significant slowdown calling font-lock-fontify-buffer from a hook
Date: Wed, 17 Jul 2013 17:16:15 +0200
On Wed, Jul 17, 2013 at 5:04 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:

> If we must always
> run this from weird --eval arguments on the command line

Using --eval from the command line is not required, just makes timing
it all easier. But if you want a reproducible case without eval:

  ;; .emacs starts here
  (add-hook 'prog-mode-hook 'font-lock-fontify-buffer)
  ;; .emacs ends here

  emacs [/path/to/]xdisp.c

That's it. I don't know how to make it simpler.

> and on top
> of that call fontification from an obscure mode hook

prog-mode-hook isn't "obscure", We've spent time making all
programming modes derive from prog-mode, so running things on it is
nothing strange.

Also, I do not choose where I will hit a bug :-)

   J




This bug report was last modified 5 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.