From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: M-RET slow Date: Fri, 26 Apr 2013 16:18:28 +0200 Message-ID: <87ip3974uj.fsf@gmail.com> References: <87fvyd7q3m.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVjTs-0006t8-7b for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 10:18:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVjTr-0005j9-4y for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 10:18:32 -0400 In-Reply-To: <87fvyd7q3m.fsf@bzg.ath.cx> (Bastien's message of "Fri, 26 Apr 2013 08:39:25 +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: Bastien Cc: emacs-orgmode@gnu.org Hello, Bastien writes: > Hi Samuel, > > Samuel Wales writes: > >> In recent git, M-RET takes a few seconds before it does anything. I >> wonder what sophisticated calculation it is doing? :) > > You can debug the function > > C-h f org-insert-heading RET > > then jump on its definition and M-x edebug-defun RET at the end to > follow what it does. > > A few seconds is not acceptable, unless you managed to install Emacs > on a PDP-1. :) I pushed a speed-up for `org-insert-heading'. Is it speed acceptable now? Regards, -- Nicolas Goaziou