GNU bug report logs - #18696
Emacs freezes for a while visitin Conf (.ini)) buffers

Previous Next

Package: emacs;

Reported by: Angelo Graziosi <angelo.graziosi <at> alice.it>

Date: Sun, 12 Oct 2014 08:25:02 UTC

Severity: normal

Tags: moreinfo

Fixed in version 28.1

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

Bug is archived. No further changes may be made.

Full log


Message #14 received at 18696 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Angelo Graziosi <angelo.graziosi <at> alice.it>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 18696 <at> debbugs.gnu.org
Subject: Re: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers
Date: Tue, 14 Oct 2014 14:43:49 -0400
> Indeed.. it is this in my initialization file:
>   (which-function-mode t)
> and, considering the structure of that setup.ini file, this 'freezing' could
> be expected..

Actually IIUC which-function-mode shouldn't cause such a slow down.
If it does, it's probably because the major mode doesn't have special
support for which-function-mode, so it falls back on using imenu's
support, i.e. it needs to scan the whole buffer.

This said, scanning the whole buffer shouldn't be that sow, unless you
really have very many sections.  So it might also simply be a bug in the
way the major mode supports imenu (e.g. the regexp used is inefficient).


        Stefan




This bug report was last modified 3 years and 303 days ago.

Previous Next


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