Re: [O] bug#16832: Emacs goes crazy when deleting lines

2014-03-20 Thread Fabrice Niessen
Nicolas Goaziou wrote: > 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_

Re: [O] bug#16832: Emacs goes crazy when deleting lines

2014-03-17 Thread Stefan
> So, it only covers a single command (C-k). Sorry, forget my question: I had forgotten to turn my brain on, somehow (seems to happen too often lately). These numbers aren't call counts, they're just numbers of samples, so there's no evidence that flyspell-post-command-hook was run very many times

Re: [O] bug#16832: Emacs goes crazy when deleting lines

2014-03-17 Thread Fabrice Niessen
Stefan wrote: >> I thought at using the profiler of Emacs 24, and it gives meaningful >> results. Good news #2. >> Here they are: >> --8<---cut here---start->8--- >> - flyspell-post-command-hook 3271 98% > > Does this report o

Re: [O] bug#16832: Emacs goes crazy when deleting lines

2014-03-17 Thread Stefan
> I thought at using the profiler of Emacs 24, and it gives meaningful > results. Good news #2. > Here they are: > --8<---cut here---start->8--- > - flyspell-post-command-hook 3271 98% Does this report only cover a single com

Re: [O] bug#16832: Emacs goes crazy when deleting lines

2014-03-15 Thread Nicolas Goaziou
Eli Zaretskii writes: > Do you happen to know, or can measure, how much faster is the latest > version? Given the timing provided by the OP, it'd have to be at > least 100 times faster, to avoid annoying delays after each command. Basically it is, (search-forward "call_") versus (re-sear

Re: [O] bug#16832: Emacs goes crazy when deleting lines

2014-03-15 Thread Eli Zaretskii
> From: Nicolas Goaziou > Cc: Fabrice Niessen , emacs-orgmode@gnu.org, > 16...@debbugs.gnu.org > Date: Sat, 15 Mar 2014 17:17:26 +0100 > > > (while (search-forward "call_" nil t) > > (save-excursion > > (goto-char (match-beginning 0)) > > (when (looking-at org-babel-inlin

Re: [O] bug#16832: Emacs goes crazy when deleting lines

2014-03-15 Thread Nicolas Goaziou
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-

Re: [O] bug#16832: Emacs goes crazy when deleting lines

2014-03-15 Thread Eli Zaretskii
> From: Fabrice Niessen > Cc: 16...@debbugs.gnu.org, emacs-orgmode > Date: Fri, 14 Mar 2014 17:00:54 +0100 > > I realized that Emacs did not into an infloop, but simply gave me back > control after a very long time (more than 2 mins). Good news #1. > > I thought at using the profiler of Emacs 2

Re: [O] bug#16832: Emacs goes crazy when deleting lines

2014-03-14 Thread Fabrice Niessen
Eli Zaretskii wrote: >> From: "Fabrice Niessen" >> Cc: 16...@debbugs.gnu.org >> Date: Wed, 26 Feb 2014 20:42:20 +0100 >> >> Eli Zaretskii wrote: >> >> From: "Fabrice Niessen" >> >> Cc: 16...@debbugs.gnu.org >> >> Date: Wed, 26 Feb 2014 12:06:24 +0100 >> >> >> >> > Then try F12 (if you are on XP