From mboxrd@z Thu Jan 1 00:00:00 1970 From: Angus M Subject: Re: long code blocks making Org Mode very slow Date: Wed, 15 Jul 2015 12:22:24 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFLi4-0007pq-Ey for emacs-orgmode@gnu.org; Wed, 15 Jul 2015 08:22:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFLhy-0006aH-Cd for emacs-orgmode@gnu.org; Wed, 15 Jul 2015 08:22:48 -0400 Received: from plane.gmane.org ([80.91.229.3]:60102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFLhy-0006a1-5j for emacs-orgmode@gnu.org; Wed, 15 Jul 2015 08:22:42 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZFLhm-00044x-A3 for emacs-orgmode@gnu.org; Wed, 15 Jul 2015 14:22:40 +0200 Received: from wifi-nat.bl.uk ([wifi-nat.bl.uk]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jul 2015 14:22:30 +0200 Received: from anguscmelville by wifi-nat.bl.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jul 2015 14:22:30 +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: emacs-orgmode@gnu.org 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 lag 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