From mboxrd@z Thu Jan 1 00:00:00 1970 From: Angus M Subject: long code blocks making Org Mode very slow Date: Tue, 14 Jul 2015 18:15:39 +0000 (UTC) Message-ID: 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]:33096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF4oN-0001uy-IL for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 14:20:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZF4oJ-0004iJ-Ar for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 14:20:11 -0400 Received: from plane.gmane.org ([80.91.229.3]:35781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF4oJ-0004gU-50 for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 14:20:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZF4oF-00048I-OK for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 20:20:04 +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 ; Tue, 14 Jul 2015 20:20:03 +0200 Received: from anguscmelville by wifi-nat.bl.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jul 2015 20:20:03 +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'm trying to run a long Python code block (~4000 lines) in org mode. The code is sandwiched between: #+begin_src python #+end_src It runs fine, but org mode becomes incredibly slow - when typing text there is about a 10 second delay before the character appears on the screen. If I reduce the number of lines of code in the block there is a noticeable increase in speed. I am not using line numbers, and the delay is not ameliorated by turning off fontification. If I add a semi-colon before #+begin_src, to comment it off (get rid of src environment), then org mode returns to it's normal speed. Do I just have to accept that long code blocks can't be entered into Org Mode? Any help would be appreciated. I am running Org Mode (version 8.2.10) on Windows 8. Thanks Angus M