From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: bug#16832: Emacs goes crazy when deleting lines Date: Sat, 15 Mar 2014 17:17:26 +0100 Message-ID: <87ob17sag9.fsf@gmail.com> References: <86d2igl9x3.fsf@somewhere.org> <861tys93qy.fsf@somewhere.org> <86eh2r4ipj.fsf@somewhere.org> <86bnxugmkv.fsf@somewhere.org> <83txbly9xq.fsf@gnu.org> <86y50xirtv.fsf@somewhere.org> <861ty4ojm1.fsf@somewhere.org> <83y50bbh01.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOrGl-0001vw-NQ for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 12:17:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOrGe-0004Mb-Gi for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 12:17:07 -0400 In-Reply-To: <83y50bbh01.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Mar 2014 17:47:58 +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: Eli Zaretskii Cc: Fabrice Niessen , emacs-orgmode@gnu.org, 16832@debbugs.gnu.org Hello, Eli Zaretskii writes: > Thanks. So this looks like a problem with Org Mode. In particular, > org-element-inline-babel-call-successor takes a lot of time in this > case. That function traverses the buffer from top to bottom: > > (while (search-forward "call_" nil t) > (save-excursion > (goto-char (match-beginning 0)) > (when (looking-at org-babel-inline-lob-one-liner-regexp) > (throw 'exit (cons 'inline-babel-call (point))))))))) This one is an updated function, which doesn't match posted report. I expect it to be faster than the previous implementation. It would be nice to have a new profiler report, though. Regards, -- Nicolas Goaziou