From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: long code blocks making Org Mode very slow Date: Thu, 16 Jul 2015 20:10:52 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFuAx-00029n-6l for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 21:10:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFuAw-0008JF-4T for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 21:10:55 -0400 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:33549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFuAv-0008J3-T1 for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 21:10:54 -0400 Received: by widic2 with SMTP id ic2so28069804wid.0 for ; Thu, 16 Jul 2015 18:10:52 -0700 (PDT) In-Reply-To: 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: Angus M Cc: "emacs-orgmode@gnu.org" Post a Gist of your file so I can try it out. What is you value of `org-src-fontify-natively'? Grant Rettke -- gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates =E2=80=9CAll creativity is an extended form of a joke.=E2=80=9D --Kay ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Wed, Jul 15, 2015 at 7:22 AM, Angus M wrote: > I've just discovered that the slow-response is definitely related to font > locking. If I type M-x font-lock-mode to toggle it off then the typing l= ag > problem is solved. > > According to the Emacs documentation: > 'In Emacs 21 and later, turning on font-lock-mode automatically activates > the new Just-In-Time fontification provided by jit-lock-mode.' > > It would appear, therefore, that just-in-time fontification is not taking > place in the code block with the whole code block being fontified at once= - > and hence the delay. > > Any help to confirm this hypothesis and how to enable just-in-time > fontification in the code block would be appreciated. > > Angus M > >