From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Refile error - Kill is not a (set of) trees Date: Wed, 5 Aug 2009 12:33:21 +0200 Message-ID: <7DCF8C7D-6636-4AFB-BAE6-D3335BF3A6F6@gmail.com> References: <876220CB-CCCA-4756-A924-29F0E50C3C3C@gmail.com> <3CE9E7E9-825D-4CF6-A734-F750A20F1E8D@gilbert.org> <53DD6892-68AA-4123-BF02-8C7FDB306215@gmail.com> <87y6pyom48.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYdoN-00032F-FK for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 06:33:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYdoI-00031X-4x for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 06:33:34 -0400 Received: from [199.232.76.173] (port=42746 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYdoH-00031P-NF for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 06:33:29 -0400 Received: from mx20.gnu.org ([199.232.41.8]:50669) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYdoH-0004qf-9D for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 06:33:29 -0400 Received: from ey-out-1920.google.com ([74.125.78.145]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYdoG-0001Sx-2C for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 06:33:28 -0400 Received: by ey-out-1920.google.com with SMTP id 5so145497eyb.24 for ; Wed, 05 Aug 2009 03:33:23 -0700 (PDT) In-Reply-To: <87y6pyom48.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Chris Mann Cc: emacs-orgmode@gnu.org Fixed, thanks. - Carsten On Aug 5, 2009, at 7:39 AM, Chris Mann wrote: > Carsten Dominik writes: > >> could you please do the following: >> >> - Run Emacs with a minimal configuration >> - Make me a test file that will let me reproduce the bug if possible. > > > Hello Carsten, > > I've also been experiencing this behaviour lately. I have been able > to > reproduce this consistently with the following: > > 1) Create a file `reproduce.org', with the following contents: > > * Level1-1 > ** Level2-1 > *** TODO Level3-1 > SCHEDULED: <2009-08-05 Wed> > ** Level2-2 > > 2) run `emacs -Q' and evalute something resembling the following: > > (progn > (add-to-list 'load-path "path/to/org-mode/lisp") > (require 'org-agenda) > (setq org-agenda-files '("reproduce.org") > org-refile-targets '((("reproduce.org") . (:maxlevel . > 2))))) > > 3) 'M-x org-agenda-list' > > 4) Move point to the `Level3-1' item in the agenda, 'C-c C-w' and > attempt to refile it to, for example, Level2-1. > > 5) Error: org-paste-subtree: The kill is not a (set of) tree(s) [...] > > > As far as I can tell, the error occurs only when the heading's source > buffer is folded at the `Level1-1' heading; I could not reproduce the > error while the outermost heading was unfolded, regardless of the > level > of the refile source / target. > > I've investigated this error briefly: I believe `org-back-to-heading' > moves backward (passed the correct heading), to the outer-most > heading, > causing `org-end-of-subtree' to then search for the start of heading > of > the wrong level (too shallow). > > Resultingly, the killed region may extend passed the end of the target > subtree. In the above example, I believe the killed text would > include > both the level 3 heading and the subsequent level 2 heading. > > My suspicion is that this is stemming from a problem within outline- > mode. > > org-mode 6.29a > GNU Emacs 23.1.50.1 > > -- Chris > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode