Re: [Orgmode] Re: Refile error - Kill is not a (set of) trees
Carsten Dominik carsten.domi...@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. I followed Chris Mann's example and did 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 * Level1-2 2) Ran emacs clean, with no preferences file. 3) Executed this, to make sure I was using the latest orgmode: (setq load-path (cons ~/Applications/Text/Aquamacs/contrib/org/lisp load-path)) Checked to make sure. Yes, it's 6.29trans 4) Moved the points to Level3-1. C-c C-w. Attempt to refile to Level1-2. 5) The kill is not a (set of) trees etc. Running: Aquamacs, Emacs 23.1.1 Org-Mode 6.29trans I am at the end of this. My pile of things to refile is now so huge that my agenda is incomprehensible. I really do not know what to do here. The error is real. I hope that this reproduction is in some way useful. Is there something else I can do? Backtrace? Examine the kill- ring? -- Michael ___ 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
Re: [Orgmode] Re: Refile error - Kill is not a (set of) trees
On Aug 15,2009, at 12:04 AM, Carsten Dominik wrote: Hi Michael, On Aug 15, 2009, at 8:39 AM, Michael Gilbert wrote: Carsten Dominik carsten.domi...@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. I followed Chris Mann's example and did the following: 1) Create a file `reproduce.org', with the following contents: Level1-1 Is there a star missing here before Level1-1? Yes, just a copy error here in my email. The original file has the star. ** Level2-1 *** TODO Level3-1 SCHEDULED: 2009-08-05 Wed ** Level2-2 * Level1-2 2) Ran emacs clean, with no preferences file. 3) Executed this, to make sure I was using the latest orgmode: (setq load-path (cons ~/Applications/Text/Aquamacs/contrib/org/ lisp load-path)) Checked to make sure. Yes, it's 6.29trans 4) Moved the points to Level3-1. C-c C-w. Attempt to refile to Level1-2. So you are refiling en entry to the same position where is was before? OK, this it not forbidden. No. I think that is meant to move it DOWN to the bottom entry. 5) The kill is not a (set of) trees etc. For me it works just fine. I just tried in AquaEmacs. Huh. This is so strange. Wish we could reproduce this OYM. Running: Aquamacs, Emacs 23.1.1 Org-Mode 6.29trans I am at the end of this. My pile of things to refile is now so huge that my agenda is incomprehensible. I really do not know what to do here. The error is real. I hope that this reproduction is in some way useful. Is there something else I can do? Backtrace? Examine the kill-ring? Yes, backtrace, and the content of the kill ring would be interesting. Backtrace with uncompiled code if possible, press C-u C-c C-x ! before trying to create the bug. Here's the backtrace: Debugger entered--Lisp error: (error The kill is not a (set of) tree(s) - please use S-insertchar to yank anyway) signal(error (The kill is not a (set of) tree(s) - please use S- insertchar to yank anyway)) ad-Orig-error(%s The kill is not a (set of) tree(s) - please use S-insertchar to yank anyway) apply(ad-Orig-error (%s The kill is not a (set of) tree(s) - please use S-insertchar to yank anyway)) (setq ad-return-value (apply (quote ad-Orig-error) args)) (if aquamacs-ring-bell-on-error-flag (progn (aquamacs-bell) (setq ad-return-value ...)) (setq ad-return-value (apply ... args))) (let (ad-return-value) (if aquamacs-ring-bell-on-error-flag (progn ... ...) (setq ad-return-value ...)) ad-return-value) error(%s The kill is not a (set of) tree(s) - please use S- insertchar to yank anyway) (if (org-kill-is-subtree-p tree) nil (error %s (substitute- command-keys The kill is not a (set of) tree(s) - please use \\[yank] to yank anyway))) (unless (org-kill-is-subtree-p tree) (error %s (substitute- command-keys The kill is not a (set of) tree(s) - please use \\[yank] to yank anyway))) org-paste-subtree(2) (save-restriction (widen) (if pos (progn ... ... ... ...) (setq level 1) (if ... ... ... ...)) (if (not ...) (newline)) (bookmark-set org-refile-last-stored) (org-paste-subtree level) (if (fboundp ...) (deactivate-mark)) (run-hooks (quote org-after-refile-insert-hook))) (save-excursion (save-restriction (widen) (if pos ... ... ...) (if ... ...) (bookmark-set org-refile-last-stored) (org-paste- subtree level) (if ... ...) (run-hooks ...))) (save-excursion (set-buffer (setq nbuf ...)) (setq reversed (org- notes-order-reversed-p)) (save-excursion (save- restriction ... ... ... ... ... ... ...))) (if goto (progn (switch-to-buffer nbuf) (goto-char pos) (org-show- context ...)) (if regionp (progn ... ...) (org-copy-subtree 1 nil t)) (save-excursion (set-buffer ...) (setq reversed ...) (save- excursion ...)) (if regionp (delete-region ... ...) (org-cut-subtree)) (when (featurep ...) (org-inlinetask-remove-END-maybe)) (setq org- markers-to-move nil) (message Refiled to \%s\ (car it))) (progn (setq file (nth 1 it) re (nth 2 it) pos (nth 3 it)) (if (and ... pos ... ...) (error Cannot refile to position inside the tree or region)) (setq nbuf (or ... ...)) (if goto (progn ... ... ...) (if regionp ... ...) (save-excursion ... ... ...) (if regionp ... ...) (when ... ...) (setq org-markers-to-move nil) (message Refiled to \%s\ ...))) (if (setq it (or rfloc ...)) (progn (setq file ... re ... pos ...) (if ... ...) (setq nbuf ...) (if goto ... ... ... ... ... ... ...))) (when (setq it (or rfloc ...)) (setq file (nth 1 it) re (nth 2 it) pos (nth 3 it)) (if (and ... pos ... ...) (error Cannot refile to position inside the tree or region)) (setq nbuf (or ... ...)) (if goto (progn ... ... ...) (if regionp ... ...) (save- excursion ... ... ...) (if regionp ... ...) (when ... ...) (setq org- markers-to-move nil) (message Refiled to \%s\ ...))) (if (equal goto (quote ...)) (org-refile-goto-last-stored) (when (setq it ...)
Re: [Orgmode] Re: Refile error - Kill is not a (set of) trees
On Aug 15, 2009, at 9:45 AM, Michael Gilbert wrote: On Aug 15,2009, at 12:04 AM, Carsten Dominik wrote: Hi Michael, On Aug 15, 2009, at 8:39 AM, Michael Gilbert wrote: Carsten Dominik carsten.domi...@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. I followed Chris Mann's example and did the following: 1) Create a file `reproduce.org', with the following contents: Level1-1 Is there a star missing here before Level1-1? Yes, just a copy error here in my email. The original file has the star. ** Level2-1 *** TODO Level3-1 SCHEDULED: 2009-08-05 Wed ** Level2-2 * Level1-2 2) Ran emacs clean, with no preferences file. 3) Executed this, to make sure I was using the latest orgmode: (setq load-path (cons ~/Applications/Text/Aquamacs/contrib/org/ lisp load-path)) Checked to make sure. Yes, it's 6.29trans How did you check? In Emacs, when looking at an Org file, with M-x org-version? 4) Moved the points to Level3-1. C-c C-w. Attempt to refile to Level1-2. So you are refiling en entry to the same position where is was before? OK, this it not forbidden. No. I think that is meant to move it DOWN to the bottom entry. 5) The kill is not a (set of) trees etc. For me it works just fine. I just tried in AquaEmacs. Huh. This is so strange. Wish we could reproduce this OYM. Running: Aquamacs, Emacs 23.1.1 Org-Mode 6.29trans I am at the end of this. My pile of things to refile is now so huge that my agenda is incomprehensible. I really do not know what to do here. The error is real. I hope that this reproduction is in some way useful. Is there something else I can do? Backtrace? Examine the kill-ring? Yes, backtrace, and the content of the kill ring would be interesting. Backtrace with uncompiled code if possible, press C-u C-c C-x ! before trying to create the bug. Here's the backtrace: Debugger entered--Lisp error: (error The kill is not a (set of) tree(s) - please use S-insertchar to yank anyway) signal(error (The kill is not a (set of) tree(s) - please use S- insertchar to yank anyway)) ad-Orig-error(%s The kill is not a (set of) tree(s) - please use S-insertchar to yank anyway) apply(ad-Orig-error (%s The kill is not a (set of) tree(s) - please use S-insertchar to yank anyway)) (setq ad-return-value (apply (quote ad-Orig-error) args)) (if aquamacs-ring-bell-on-error-flag (progn (aquamacs-bell) (setq ad-return-value ...)) (setq ad-return-value (apply ... args))) (let (ad-return-value) (if aquamacs-ring-bell-on-error-flag (progn ... ...) (setq ad-return-value ...)) ad-return-value) error(%s The kill is not a (set of) tree(s) - please use S- insertchar to yank anyway) (if (org-kill-is-subtree-p tree) nil (error %s (substitute- command-keys The kill is not a (set of) tree(s) - please use \\ [yank] to yank anyway))) (unless (org-kill-is-subtree-p tree) (error %s (substitute- command-keys The kill is not a (set of) tree(s) - please use \\ [yank] to yank anyway))) org-paste-subtree(2) (save-restriction (widen) (if pos (progn ... ... ... ...) (setq level 1) (if ... ... ... ...)) (if (not ...) (newline)) (bookmark- set org-refile-last-stored) (org-paste-subtree level) (if (fboundp ...) (deactivate-mark)) (run-hooks (quote org-after-refile- insert-hook))) (save-excursion (save-restriction (widen) (if pos ... ... ...) (if ... ...) (bookmark-set org-refile-last-stored) (org-paste- subtree level) (if ... ...) (run-hooks ...))) (save-excursion (set-buffer (setq nbuf ...)) (setq reversed (org- notes-order-reversed-p)) (save-excursion (save- restriction ... ... ... ... ... ... ...))) (if goto (progn (switch-to-buffer nbuf) (goto-char pos) (org-show- context ...)) (if regionp (progn ... ...) (org-copy-subtree 1 nil t)) (save-excursion (set-buffer ...) (setq reversed ...) (save- excursion ...)) (if regionp (delete-region ... ...) (org-cut- subtree)) (when (featurep ...) (org-inlinetask-remove-END-maybe)) (setq org-markers-to-move nil) (message Refiled to \%s\ (car it))) (progn (setq file (nth 1 it) re (nth 2 it) pos (nth 3 it)) (if (and ... pos ... ...) (error Cannot refile to position inside the tree or region)) (setq nbuf (or ... ...)) (if goto (progn ... ... ...) (if regionp ... ...) (save- excursion ... ... ...) (if regionp ... ...) (when ... ...) (setq org- markers-to-move nil) (message Refiled to \%s\ ...))) (if (setq it (or rfloc ...)) (progn (setq file ... re ... pos ...) (if ... ...) (setq nbuf ...) (if goto ... ... ... ... ... ... ...))) (when (setq it (or rfloc ...)) (setq file (nth 1 it) re (nth 2 it) pos (nth 3 it)) (if (and ... pos ... ...) (error Cannot refile to position inside the tree or region)) (setq nbuf (or ... ...)) (if goto (progn ... ... ...) (if regionp ... ...) (save- excursion ... ... ...) (if regionp ... ...) (when ... ...)
Re: [Orgmode] Re: Refile error - Kill is not a (set of) trees
Do you have a download url for tis version of aquaemacs for me? Thanks. - Carsten On Aug 15, 2009, at 2:13 PM, Stefan Vollmar wrote: Dear Carsten, On 15.08.2009, at 12:57, Carsten Dominik wrote: How did you check? In Emacs, when looking at an Org file, with M-x org-version? In my case, M-x org-version also yields 6.29trans (and it works beautifully with the changes you made for multi-line macros, so this is looking good). I observe the same behaviour as reported by Michael Gilbert: when trying to re-file a tree with C-c $ (bound to org-archive.el) Aquamacs 2.0pr2 complains The kill is not a (setof) tree(s) - please use ^Y to yank anyway. This used to work with Aquamacs 1.7 (but it was an older version of org-mode, too). Warm regards, Stefan -- Dr. Stefan Vollmar, Dipl.-Phys. Max-Planck-Institut für neurologische Forschung Gleuelerstr. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: voll...@nf.mpg.de http://www.nf.mpg.de ___ 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 ___ 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
Re: [Orgmode] Re: Refile error - Kill is not a (set of) trees
On Aug 15, 2009, at 6:15 PM, Carsten Dominik wrote: Hi Michael, hi Stefan, I have now finally been able to reproduce this problem. It is a bug in Aquamacs 2.0. Could one of you please propagate this issue to the Aquamacs maintainer? In Aquamacs Distribution 2.0preview2, at least the following commands fail to set the kill ring appropriately: (copy-region-as-kill beg end) (kill-kill-region beg end) Sorry, this second line is a typo: (kill-region beg end) - Carsten After these commands, in normal Emacs operations, (current-kill 0) will return the content of the copied/killed region. Not so in Aquamacs. This breaks Org-mode and presumably other packages that will use these function calls. This used to work in earlier version of Aquamacs. - Carsten On Aug 15, 2009, at 2:13 PM, Stefan Vollmar wrote: Dear Carsten, On 15.08.2009, at 12:57, Carsten Dominik wrote: How did you check? In Emacs, when looking at an Org file, with M-x org-version? In my case, M-x org-version also yields 6.29trans (and it works beautifully with the changes you made for multi-line macros, so this is looking good). I observe the same behaviour as reported by Michael Gilbert: when trying to re-file a tree with C-c $ (bound to org-archive.el) Aquamacs 2.0pr2 complains The kill is not a (setof) tree(s) - please use ^Y to yank anyway. This used to work with Aquamacs 1.7 (but it was an older version of org-mode, too). Warm regards, Stefan -- Dr. Stefan Vollmar, Dipl.-Phys. Max-Planck-Institut für neurologische Forschung Gleuelerstr. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: voll...@nf.mpg.de http://www.nf.mpg.de ___ 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 === PLEASE NOTE NEW ADDRESS === prof.dr. Carsten Dominikdomi...@uva.nl Astronomical Institute 'Anton Pannekoek' www.astro.uva.nl/~dominik Faculty of Science, University of Amsterdam phone +31-20-5257477/7491 SCIENCE PARK 904, ROOM C4-106 fax +31-20-5257484 1098 XH Amsterdam, The Netherlands mail: PO BOX 94249, 1090GE, Amsterdam ___ 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
Re: [Orgmode] Re: Refile error - Kill is not a (set of) trees
Hi Chris, On Aug 5, 2009, at 7:39 AM, Chris Mann wrote: Carsten Dominik carsten.domi...@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). Can you identify which org-back-to-heading is doing this? Inside which function, what line? Thanks. - Carsten 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 ___ 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
Re: [Orgmode] Re: Refile error - Kill is not a (set of) trees
Fixed, thanks. - Carsten On Aug 5, 2009, at 7:39 AM, Chris Mann wrote: Carsten Dominik carsten.domi...@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 ___ 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
[Orgmode] Re: Refile error - Kill is not a (set of) trees
Carsten Dominik carsten.domi...@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