From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers Date: Tue, 14 Oct 2014 14:43:49 -0400 Message-ID: References: <543A3AB2.3010301@alice.it> <838ukl8z1i.fsf@gnu.org> <543A56F3.4010701@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413312269 9684 80.91.229.3 (14 Oct 2014 18:44:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2014 18:44:29 +0000 (UTC) Cc: 18696@debbugs.gnu.org To: Angelo Graziosi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 20:44:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xe753-0006jK-0P for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2014 20:44:21 +0200 Original-Received: from localhost ([::1]:39943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe752-0005lF-Mq for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2014 14:44:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe74s-0005l6-JK for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 14:44:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe74l-00005L-0p for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 14:44:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe74k-00005H-Tb for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 14:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xe74k-00066J-7d for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 14:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Oct 2014 18:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18696 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18696-submit@debbugs.gnu.org id=B18696.141331223923432 (code B ref 18696); Tue, 14 Oct 2014 18:44:02 +0000 Original-Received: (at 18696) by debbugs.gnu.org; 14 Oct 2014 18:43:59 +0000 Original-Received: from localhost ([127.0.0.1]:43484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xe74g-00065r-QX for submit@debbugs.gnu.org; Tue, 14 Oct 2014 14:43:59 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:47350) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xe74e-00065g-L1 for 18696@debbugs.gnu.org; Tue, 14 Oct 2014 14:43:56 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s9EIhsW3006532; Tue, 14 Oct 2014 14:43:54 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 485CC66089; Tue, 14 Oct 2014 14:43:49 -0400 (EDT) In-Reply-To: <543A56F3.4010701@alice.it> (Angelo Graziosi's message of "Sun, 12 Oct 2014 12:24:51 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5094=0 X-NAI-Spam-Version: 2.3.0.9378 : core <5094> : inlines <1396> : streams <1316777> : uri <1824899> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94486 > 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