From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Slow movement in large buffers Date: Tue, 15 Mar 2011 14:09:20 +0000 Message-ID: <87fwqowk4v.fsf@ucl.ac.uk> References: <87d3ltjc8x.fsf@fastmail.fm> <87wrk0r6p3.fsf@ucl.ac.uk> <87fwqoy26k.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=59456 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzUwE-0003An-CS for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 10:09:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzUwD-0002CJ-Bp for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 10:09:30 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:46442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzUwD-0002Bo-6U for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 10:09:29 -0400 In-Reply-To: <87fwqoy26k.fsf@fastmail.fm> (Matt Lundin's message of "Tue, 15 Mar 2011 08:54:11 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Lundin Cc: Org Mode Hello, following up on this issue, I have just run into it again. I'm editing a not very large document and suddenly things slowed down, mostly but not exclusively for "next-line": --8<---------------cut here---------------start------------->8--- next-line 18 2.1547069999 0.1197059444 previous-line 19 0.4066669999 0.0214035263 org-mode-flyspell-verify 16 5.299...e-05 3.312...e-06 --8<---------------cut here---------------end--------------->8--- This happened when I started a new source code block (gnuplot, to be exact) but didn't type in the end_src line for a while. The problem seems to be due to font-locking and it tries to font-lock the whole document initially. When I eventually get around to typing the end_src line, it font-locks correctly but things are slow thereafter. There seems to be some hysteresis loop in the code... If I kill the buffer and reload the file, everything is fine. --8<---------------cut here---------------start------------->8--- next-line 17 0.0655900000 0.0038582352 previous-line 17 0.0115249999 0.0006779411 org-mode 1 0.007178 0.007178 org-fontify-meta-lines-and-blocks 25 0.0022920000 9.168...e-05 org-set-startup-visibility 1 0.001619 0.001619 org-raise-scripts 25 0.0013889999 5.555...e-05 --8<---------------cut here---------------end--------------->8--- Dramatic difference! -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.38.gf8c6.dirty)