From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julian Burgos Subject: Re: Re: org-src-fontify-natively makes things very, very slow Date: Fri, 18 Mar 2011 00:11:56 +0000 Message-ID: References: <87ipvhiou8.fsf@ucl.ac.uk> <804o71triy.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54107 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0NIM-0000Uw-QS for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 20:11:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0NIK-000880-OJ for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 20:11:58 -0400 Received: from mail-qw0-f41.google.com ([209.85.216.41]:55863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0NIK-00087v-Ly for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 20:11:56 -0400 Received: by qwa26 with SMTP id 26so3179649qwa.0 for ; Thu, 17 Mar 2011 17:11:56 -0700 (PDT) In-Reply-To: <804o71triy.fsf@somewhere.org> 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: =?ISO-8859-1?Q?S=E9bastien_Vauban?= , e.fraga@ucl.ac.uk Cc: emacs-orgmode@gnu.org When editing the block in native mode everything works fine. Closing the buffer (or even rebooting the computer) had no effect. I=B4ll keep this off until is fixed. It is though a great feature! 2011/3/17 S=E9bastien Vauban : > Hi all, > > Eric S Fraga wrote: >> Julian Burgos writes: >>> I was very excited to discover org-src-fontify-natively, but I=B4m not = having >>> a good experience with it. When it is on, org-mode becomes very slow wh= ile >>> typing into a code block. This happens regardless of the size of the fi= le >>> or number of blocks, and the slow down is very noticeable. Each keystro= ke >>> takes about half a second to appear in screen. Typing outside of the co= de >>> blocks everything works fine. Turning off font-lock-verbose and >>> global-linum-mode did not make any difference. I=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. =A0Does the response improve i= f >> you kill the buffer and load the file again? > > Maybe this is (partly?) due to the overlay I added: > > #+begin_src emacs-lisp > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(overlay-put (make-overlay beg1 block-end) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 '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, > =A0Seb > > -- > S=E9bastien Vauban > > > --=20 Julian Mariano Burgos Hafranns=F3knastofnunin/Marine Research Institute Sk=FAlagata 4, 121 Reykjav=EDk, Iceland S=EDmi/Telephone : +354-5752037 Br=E9fs=EDmi/Telefax:=A0 +354-5752001 Netfang/Email: julian@hafro.is, jmburgos@uw.edu