From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: org-src-fontify-natively makes things very, very slow Date: Thu, 17 Mar 2011 21:34:45 +0100 Message-ID: <804o71triy.fsf@somewhere.org> References: <87ipvhiou8.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi all, Eric S Fraga wrote: > Julian Burgos writes: >> I was very excited to discover org-src-fontify-natively, but I=C2=B4m no= t having >> a good experience with it. When it is on, org-mode becomes very slow whi= le >> typing into a code block. This happens regardless of the size of the file >> or number of blocks, and the slow down is very noticeable. Each keystroke >> takes about half a second to appear in screen. Typing outside of the code >> blocks everything works fine. Turning off font-lock-verbose and >> global-linum-mode did not make any difference. I=C2=B4m running OrgMode = 7.5 and >> GNU Emacs 23.2.1. on Windows XP. >> >> Any ideas? Idem for me. Slow(er) in Org buffer itself. > If you edit the source code block in its native mode (C-c', > =3Dorg-edit-special=3D), is it fast or slow? Fast(er) in dedicated buffer. > In any case, this may be related to the thread on slow behaviour > discussed on this list the past few days. Does the response improve if > you kill the buffer and load the file again? Maybe this is (partly?) due to the overlay I added: #+begin_src emacs-lisp (overlay-put (make-overlay beg1 block-end) 'face 'org-block-background)) #+end_src in function #+begin_src emacs-lisp (defun org-fontify-meta-lines-and-blocks (limit) #+end_src in file org.el. Best regards, Seb --=20 S=C3=A9bastien Vauban