From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: [Orgmode] Weird behaviour with org-yank and org-startup-indented Date: Wed, 20 Oct 2010 13:38:16 -0400 Message-ID: References: <87bp6vpks7.fsf@keller.adm.naquadah.org> <3B1391C6-72E9-4BAA-9197-7B27B26249BC@gmail.com> <87wrpcdgl0.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287596311 16568 80.91.229.12 (20 Oct 2010 17:38:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Oct 2010 17:38:31 +0000 (UTC) Cc: emacs-devel@gnu.org, emacs-orgmode@gnu.org, Carsten Dominik To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 20 19:38:29 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P8ccO-00015W-9V for ged-emacs-devel@m.gmane.org; Wed, 20 Oct 2010 19:38:28 +0200 Original-Received: from localhost ([127.0.0.1]:56975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8ccN-0007no-JI for ged-emacs-devel@m.gmane.org; Wed, 20 Oct 2010 13:38:27 -0400 Original-Received: from [140.186.70.92] (port=43120 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8ccE-0007kk-Ny for emacs-devel@gnu.org; Wed, 20 Oct 2010 13:38:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8ccE-0004cj-8S for emacs-devel@gnu.org; Wed, 20 Oct 2010 13:38:19 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:60550 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8ccE-0004cY-5m; Wed, 20 Oct 2010 13:38:18 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApYJAJrFvkxMCpO7/2dsb2JhbACgUXpyv1iFSgSSGw X-IronPort-AV: E=Sophos;i="4.57,356,1283745600"; d="scan'208";a="80234021" Original-Received: from 76-10-147-187.dsl.teksavvy.com (HELO ceviche.home) ([76.10.147.187]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 20 Oct 2010 13:38:16 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3D50666112; Wed, 20 Oct 2010 13:38:16 -0400 (EDT) In-Reply-To: <87wrpcdgl0.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 20 Oct 2010 11:33:31 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-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 Xref: news.gmane.org gmane.emacs.devel:131902 gmane.emacs.orgmode:32176 Archived-At: > 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? Stefan