[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented
From: |
Chong Yidong |
Subject: |
Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented |
Date: |
Wed, 20 Oct 2010 11:33:31 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Julien Danjou <address@hidden> 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.
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 saved to the primary selection.
There are a few possible fixes, but I am yet not sure which is best.
One is to avoid setting saved-region-selection inside a timer. Another
is for save-excursion to inhibit writing to saved-region-selection; a
third is not to treat remove-text-properties as a trigger for saving the
primary selection.
- [Orgmode] Weird behaviour with org-yank and org-startup-indented, Julien Danjou, 2010/10/15
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Carsten Dominik, 2010/10/17
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Julien Danjou, 2010/10/18
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Julien Danjou, 2010/10/20
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Chong Yidong, 2010/10/20
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Julien Danjou, 2010/10/20
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Andreas Röhler, 2010/10/20
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Chong Yidong, 2010/10/20
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented,
Chong Yidong <=
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Lennart Borgman, 2010/10/20
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Stefan Monnier, 2010/10/20
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Chong Yidong, 2010/10/21
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Carsten Dominik, 2010/10/21