From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chong Yidong Subject: Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented Date: Thu, 21 Oct 2010 13:40:34 -0400 Message-ID: <87sjzzo359.fsf@stupidchicken.com> References: <87bp6vpks7.fsf@keller.adm.naquadah.org> <3B1391C6-72E9-4BAA-9197-7B27B26249BC@gmail.com> <87wrpcdgl0.fsf@stupidchicken.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: (Stefan Monnier's message of "Wed, 20 Oct 2010 13:38:16 -0400") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org To: Stefan Monnier Cc: emacs-devel@gnu.org, emacs-orgmode@gnu.org, Carsten Dominik List-Id: emacs-orgmode.gnu.org Stefan Monnier 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.