emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Chris Mann <cshclm@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Refile error - Kill is not a (set of) trees
Date: Wed, 5 Aug 2009 12:33:21 +0200	[thread overview]
Message-ID: <7DCF8C7D-6636-4AFB-BAE6-D3335BF3A6F6@gmail.com> (raw)
In-Reply-To: <87y6pyom48.fsf@gmail.com>

Fixed, thanks.

- Carsten

On Aug 5, 2009, at 7:39 AM, Chris Mann wrote:

> Carsten Dominik <carsten.dominik@gmail.com> 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

  parent reply	other threads:[~2009-08-05 10:33 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-24  5:44 Refile error - Kill is not a (set of) trees Michael Gilbert
2009-06-25  4:45 ` Carsten Dominik
2009-06-25 17:42   ` Michael Gilbert
2009-06-26  8:14     ` Carsten Dominik
2009-08-03 18:33       ` Michael Gilbert
2009-08-04 15:17         ` Carsten Dominik
2009-08-05  5:39           ` Chris Mann
2009-08-05  9:27             ` Carsten Dominik
2009-08-05 10:33             ` Carsten Dominik [this message]
2009-08-15  6:39             ` Michael Gilbert
2009-08-15  7:04               ` Carsten Dominik
2009-08-15  7:45                 ` Michael Gilbert
2009-08-15 10:57                   ` Carsten Dominik
2009-08-15 12:13                     ` Stefan Vollmar
2009-08-15 12:26                       ` Carsten Dominik
2009-08-15 16:15                       ` Carsten Dominik
2009-08-15 16:16                         ` Carsten Dominik
2009-08-15 22:04                         ` Thank you, Carsten, others (was: Refile error - Kill is not a (set of) trees) Michael Gilbert
2010-02-15 15:16                         ` Org-mode related bug reintroduced in Aquamacs " Michael Gilbert
2010-02-16  4:53                           ` Carsten Dominik
2009-08-04 15:18         ` Refile error - Kill is not a (set of) trees Carsten Dominik
2009-08-05 10:12         ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7DCF8C7D-6636-4AFB-BAE6-D3335BF3A6F6@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=cshclm@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).