[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: |
Thu, 21 Oct 2010 13:40:34 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> 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 to saved-region-selection, from which it
>> is later saved to the primary selection.
>
> Shouldn't org-indent-refresh-section use with-silent-modifications
> around the remove-text-properties call?
If we were starting from scratch, I think it's more sensible to make
text property changes "silent" by default, while providing an explicit
call to "unsilence" them when desired (which seem to be a minority of
cases). I guess it's too late to change now, though.
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, (continued)
- 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, 2010/10/20
- 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 <=
- Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented, Carsten Dominik, 2010/10/21