From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Chaganti Subject: Re: New ELPA addition bogs down Emacs Date: Thu, 12 Feb 2015 04:04:47 +0530 Message-ID: References: <8761b8cfsf.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLfsE-0005be-Id for emacs-orgmode@gnu.org; Wed, 11 Feb 2015 17:35:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLfsD-0004dd-E3 for emacs-orgmode@gnu.org; Wed, 11 Feb 2015 17:35:10 -0500 Received: from mail-wg0-x236.google.com ([2a00:1450:400c:c00::236]:43294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLfsD-0004cg-8W for emacs-orgmode@gnu.org; Wed, 11 Feb 2015 17:35:09 -0500 Received: by mail-wg0-f54.google.com with SMTP id y19so6410282wgg.13 for ; Wed, 11 Feb 2015 14:35:07 -0800 (PST) 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: Lawrence Bottorff Cc: Nick Dokos , emacs-orgmode On Thu, Feb 12, 2015 at 3:26 AM, Lawrence Bottorff wrote: > Changing to #+STARTUP: showeverything did the trick . . . although I don't > know why. Why? One of the reasons I discovered recently was this inconspicuous change (around v8.2.6) [1], though this may or may not be what is happening for you. Calling `org-overview` on large files takes a lot of time and is CPU intensive. #+STARTUP: showeverything basically turns off a call to this, when a file is opened -- so, the file is displayed with everything shown. Before this change, `org-overview` had a call to `recenter`, and when a file was opened by visiting `org-agenda`, the file would be opened in a buried (not currently visible) buffer. This would case `recenter` to error out (since it expects the buffer to be current), there by causing an error in `org-overview`. Co-incidentally, this saved all the CPU cycles. This change removed this "broken" call to `recenter`. [1] - http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=b88c5464db2cb0d90d4f30e43b5e08d2b1c1fcea;hp=8cc4e09950594b2abec2502e9218318570595ac5 -- Puneeth