From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-src-fontify-natively makes things very, very slow Date: Fri, 29 Apr 2011 00:32:16 +0100 Message-ID: <8762pyhrzz.fsf@ucl.ac.uk> References: <87ipvhiou8.fsf@ucl.ac.uk> <804o71triy.fsf@somewhere.org> <87bp18su1a.fsf@ucl.ac.uk> <80fwqjqxfj.fsf@somewhere.org> <87oc56q26l.fsf@ucl.ac.uk> <87ipvdo9zs.fsf@ucl.ac.uk> <87tyewk1im.fsf@gmail.com> <87lj089ze7.fsf@pinto.chemeng.ucl.ac.uk> <81001EF0-67CC-4477-BF2C-DDE5E5976815@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFah3-000348-R7 for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 19:32:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFah3-0004cW-0V for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 19:32:21 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:49982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFah2-0004cG-Ss for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 19:32:20 -0400 In-Reply-To: <81001EF0-67CC-4477-BF2C-DDE5E5976815@gmail.com> (Carsten Dominik's message of "Thu, 28 Apr 2011 22:59:57 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik writes: > On 21.3.2011, at 18:06, Eric S Fraga wrote: > >> Hello again, >>=20 >> going back to the original subject of this thread (although thanks all >> for your inputs on yasnippet ;-), I have started working on a new >> document and am finding the slowdown of navigation (next-line) very >> annoying. In this document, I have two gnuplot source blocks. >> Navigating through them, I get the following results from elp: [...] >> From these timings, the font locking doesn't seem to be the issue but >> maybe the overlays are. However, commenting out the code that S=C3=A9ba= stien >> Vauban indicated: >>=20 >>> Maybe this is (partly?) due to the overlay I added: >>>=20 >>> #+begin_src emacs-lisp >>> (overlay-put (make-overlay beg1 block-end) >>> 'face 'org-block-background)) >>> #+end_src >>=20 >> (well, commenting out the whole condition that includes this code) makes >> no difference at all. > > Did you restart Emacs? Because if you just continued, all those > overlays are there already. I cannot remember. Sorry. >> So, I turned off =3Dorg-src-fontify-natively=3D and things are back to >> normal: next-line is as fast as previous-line. I can put up without the >> fontification so this is what I am doing now.=20=20 >>=20 >> However, as it's a pity to lose the native fontification, it would be >> nice to solve this problem in another way. Can anybody suggest any >> other thing to try? > > The problem with the multiple overlays that were created > during native fontification is now fixed. I would be interested > to know if this improves the situation. > > - Carsten > Thanks. I've re-enabled =3Dorg-src-fontify-natively=3D and will let you know how I get on! --=20 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.225.gbfdc9.dirty)