Re: [O] M-RET slow

2013-05-01 Thread Samuel Wales
Hi Bastien, On 4/27/13, Bastien b...@altern.org wrote: Samuel Wales samolog...@gmail.com writes: If I run it using M-:, it is fast. If I run it using a key binding, it is a bit slow (about 1s). Then this is about `org-meta-return', not `org-insert-heading'. What is the value of

Re: [O] M-RET slow

2013-04-28 Thread Bastien
Hi Samuel, Samuel Wales samolog...@gmail.com writes: If I run it using M-:, it is fast. If I run it using a key binding, it is a bit slow (about 1s). Then this is about `org-meta-return', not `org-insert-heading'. What is the value of `org-catch-invisible-edits' in your config? --

Re: [O] M-RET slow

2013-04-27 Thread Samuel Wales
Hi Nicolas, On 4/26/13, Nicolas Goaziou n.goaz...@gmail.com wrote: I pushed a speed-up for `org-insert-heading'. Is it speed acceptable now? If I run it using M-:, it is fast. If I run it using a key binding, it is a bit slow (about 1s). C-RET is fast using a key binding. So perhaps there

Re: [O] M-RET slow

2013-04-26 Thread Bastien
Hi Samuel, Samuel Wales samolog...@gmail.com 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

Re: [O] M-RET slow

2013-04-26 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: Hi Samuel, Samuel Wales samolog...@gmail.com 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

Re: [O] M-RET slow

2013-04-26 Thread Carsten Dominik
On 26 apr. 2013, at 16:18, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Bastien b...@gnu.org writes: Hi Samuel, Samuel Wales samolog...@gmail.com writes: In recent git, M-RET takes a few seconds before it does anything. I wonder what sophisticated calculation it is doing? :)

Re: [O] M-RET slow

2013-04-26 Thread Bastien
Carsten Dominik carsten.domi...@gmail.com writes: is org-in-item-p slow? It depends on the size of the list -- see for example this problem, where moving an item within a logbook drawer with many items is too slow: http://thread.gmane.org/gmane.emacs.orgmode/66574 -- Bastien

Re: [O] M-RET slow

2013-04-26 Thread Nicolas Goaziou
Hello, Carsten Dominik carsten.domi...@gmail.com writes: is org-in-item-p slow? It is slow, and `org-insert-heading' was calling it (directly or indirectly) four times. Regards, -- Nicolas Goaziou

Re: [O] M-RET slow

2013-04-26 Thread Nicolas Goaziou
Hello, Bastien b...@altern.org writes: Carsten Dominik carsten.domi...@gmail.com writes: is org-in-item-p slow? It depends on the size of the list -- see for example this problem, where moving an item within a logbook drawer with many items is too slow:

Re: [O] M-RET slow

2013-04-26 Thread Carsten Dominik
On 26 apr. 2013, at 16:46, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Carsten Dominik carsten.domi...@gmail.com writes: is org-in-item-p slow? It is slow, and `org-insert-heading' was calling it (directly or indirectly) four times. OK, thanks for fixing it. org-insert-heading

Re: [O] M-RET slow

2013-04-26 Thread Nicolas Goaziou
Carsten Dominik carsten.domi...@gmail.com writes: org-insert-heading is up for a rewrite, what a mess :/ And the rewrite should use `org-element-at-point' (once) and have tests for its specifications, like many others interactive core functions. Looks like there so work to be done in the 8.x

Re: [O] M-RET slow

2013-04-26 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Bastien b...@altern.org writes: Carsten Dominik carsten.domi...@gmail.com writes: is org-in-item-p slow? It depends on the size of the list -- see for example this problem, where moving an item within a logbook drawer with

Re: [O] M-RET slow

2013-04-26 Thread Nicolas Goaziou
Bastien b...@altern.org writes: Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Bastien b...@altern.org writes: Carsten Dominik carsten.domi...@gmail.com writes: is org-in-item-p slow? It depends on the size of the list -- see for example this problem, where moving an

Re: [O] M-RET slow

2013-04-26 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes: Looks like there so work to be done in the 8.x series ;) Sigh. All the work we did already looks shallow compared to what we have to do... I guess that's just part of the game! -- Bastien

[O] M-RET slow

2013-04-25 Thread Samuel Wales
In recent git, M-RET takes a few seconds before it does anything. I wonder what sophisticated calculation it is doing? :) Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it.