Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-21 Thread Carsten Dominik
On Oct 20, 2010, at 5:33 PM, Chong Yidong wrote: Julien Danjou jul...@danjou.info writes: In a Org buffer with org-startup-indented set to t, type: ** TODO abcdefgh Go on `c', activate mark press C-e, press M-w (kill-ring-save). [Wrong primary selection appears] The problem is in

Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-21 Thread Chong Yidong
Stefan Monnier monn...@iro.umontreal.ca writes: The problem is in org-indent-refresh-section, which is run from a timer. This function first moves point and then calls remove-text-properties, which is considered a buffer change. Since the mark is active, the selection code saves the region

Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-20 Thread Julien Danjou
On Mon, Oct 18 2010, Julien Danjou wrote: I've done this then: * TODO Blalaundo I go on `u', press C-space, then C-e. The M-; and execute (x-selection-value), which returns: undo. So far so good. But if I go on `u', press C-space, then C-e, then M-w, then M-; to execute

Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-20 Thread Julien Danjou
On Wed, Oct 20 2010, Chong Yidong wrote: It's rather strange to complain about nobody else working on the bug, when you (i) did not give a recipe and (ii) stated that you were already working on it. My bad, I think I forgot to add a smiley at the end of the sentence, so here it is: :-) I

Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-20 Thread Andreas Röhler
Am 20.10.2010 17:24, schrieb Julien Danjou: On Wed, Oct 20 2010, Chong Yidong wrote: It's rather strange to complain about nobody else working on the bug, when you (i) did not give a recipe and (ii) stated that you were already working on it. My bad, I think I forgot to add a smiley at the

Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-20 Thread Lennart Borgman
On Wed, Oct 20, 2010 at 5:33 PM, Chong Yidong c...@stupidchicken.com wrote: Julien Danjou jul...@danjou.info writes: In a Org buffer with org-startup-indented set to t, type: ** TODO abcdefgh Go on `c', activate mark press C-e, press M-w (kill-ring-save). [Wrong primary selection appears]

Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-20 Thread Chong Yidong
Julien Danjou jul...@danjou.info writes: So it seems that the problem I raise does not interest anybody, but I will continue to debug. This is how to reproduce. It's rather strange to complain about nobody else working on the bug, when you (i) did not give a recipe and (ii) stated that you

Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-20 Thread Chong Yidong
Julien Danjou jul...@danjou.info writes: In a Org buffer with org-startup-indented set to t, type: ** TODO abcdefgh Go on `c', activate mark press C-e, press M-w (kill-ring-save). [Wrong primary selection appears] The problem is in org-indent-refresh-section, which is run from a timer.

Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-20 Thread Stefan Monnier
The problem is in org-indent-refresh-section, which is run from a timer. This function first moves point and then calls remove-text-properties, which is considered a buffer change. Since the mark is active, the selection code saves the region to saved-region-selection, from which it is later

Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-20 Thread Chong Yidong
Julien Danjou jul...@danjou.info writes: On Wed, Oct 20 2010, Chong Yidong wrote: It's rather strange to complain about nobody else working on the bug, when you (i) did not give a recipe and (ii) stated that you were already working on it. My bad, I think I forgot to add a smiley at the

Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-18 Thread Julien Danjou
On Sun, Oct 17 2010, Carsten Dominik wrote: This is bad. As this problem does not exist in Emacs 23 and I have not changed anything in this part of the code, maybe a bug report to EMacs is in order. Will you file one, with the remark that this works fine in Emacs 23? I'm not sure that

[Orgmode] Weird behaviour with org-yank and org-startup-indented

2010-10-15 Thread Julien Danjou
Hi, I'm using org 7.01h with Emacs 24 trunk. When I set org-startup-indented to t, I observe the following: ** TODO Some stuff I select stuff and press M-w. Then I go the the line under and press C-y (org-yank). Now I got: ** TODO Some stuff ** TODO Some instead of: ** TODO Some stuff stuff