all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: 18696@debbugs.gnu.org
Subject: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers
Date: Tue, 14 Oct 2014 14:43:49 -0400	[thread overview]
Message-ID: <jwv1tqaqyse.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <543A56F3.4010701@alice.it> (Angelo Graziosi's message of "Sun, 12 Oct 2014 12:24:51 +0200")

> 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





  reply	other threads:[~2014-10-14 18:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-12  8:24 bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers Angelo Graziosi
2014-10-12  8:36 ` Eli Zaretskii
2014-10-12 10:24   ` Angelo Graziosi
2014-10-14 18:43     ` Stefan Monnier [this message]
2021-08-19 14:55       ` Lars Ingebrigtsen
2021-08-19 15:42         ` Andreas Schwab
2021-08-19 15:52           ` Lars Ingebrigtsen
2021-09-17 15:54         ` Lars Ingebrigtsen

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=jwv1tqaqyse.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=18696@debbugs.gnu.org \
    --cc=angelo.graziosi@alice.it \
    /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.