From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Refiling goes to the wrong place Date: Thu, 27 Aug 2009 14:33:41 -0400 Message-ID: <871vmxf6nu.fsf@gollum.intra.norang.ca> References: <87d46hfcgb.fsf@gollum.intra.norang.ca> <87ljl5npts.fsf@in-ulm.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgjnH-0001jR-DX for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 14:33:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgjnD-0001ib-7d for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 14:33:54 -0400 Received: from [199.232.76.173] (port=55966 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgjnD-0001iU-3L for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 14:33:51 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:56568) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MgjnC-0000Zc-Sr for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 14:33:51 -0400 In-Reply-To: <87ljl5npts.fsf@in-ulm.de> (Benjamin Andresen's message of "Thu\, 27 Aug 2009 19\:12\:31 +0200") 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: Benjamin Andresen Cc: emacs-orgmode@gnu.org Benjamin Andresen writes: > I have the same behavior from time to time. But whenever I try to find a > reproducible scenario it disappears. > > It also never happens twice in a row, same as with Bernt. I think I have something that is reproducible. ,----[ /tmp/x.org ] | | * Refile Targets | ** TODO One | ** TODO Two | ** TODO Three | ** TODO Four | ** TODO Five | ** TODO Six | *** TODO Six.one | *** TODO Six.two | **** TODO Clock me | ** TODO Seven | ** TODO Eight | ** TODO Nine | ** TODO Ten | * Refile Tasks | *** TODO Refile Me `---- ,----[ /tmp/minimal.emacs ] | (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp")) | (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode)) | (require 'org-install) | | (global-set-key "\C-cl" 'org-store-link) | (global-set-key "\C-ca" 'org-agenda) | (global-set-key "\C-cb" 'org-iswitchb) | | (setq org-log-done (quote time)) | (setq org-log-into-drawer t) | (setq org-agenda-files '("/tmp/x.org")) | (setq user-init-file "/tmp/custom.el") | | (setq org-refile-allow-creating-parent-nodes nil) | (setq org-refile-targets (quote ((nil :maxlevel . 2) (org-agenda-files :maxlevel . 2)))) | (setq org-refile-use-outline-path nil) | (setq org-todo-keywords (quote ((sequence "TODO(t!)" "STARTED(s!)" "|" "DONE(d!/!)") (sequence "WAITING(w@/!)" "SOMEDAY(S!)" "OPEN(O@)" "|" "CANCELLED(c@/!)") (sequence "QUOTE(q!)" "QUOTED(Q!)" "|" "APPROVED(A@)" "EXPIRED(E@)" "REJECTED(R@)")))) `---- Steps to reproduce: 1. Save the files /tmp/x.org and /tmp/minimal.emacs 2. emacs -q -l /tmp/minimal.emacs /tmp/x.org 3. Go to CONTENTS view with S-TAB twice 4. Put point on **** TODO Clock Me 5. Clock in the task with C-c C-x C-i This adds a logbook drawer with the clock 6. Fold to OVERVIEW view with S-TAB So it looks like this ,----[ x.org folder ] | | * Refile Targets... | * Refile Tasks... `---- 7. M-x org-clock-goto This reveals the buffer like so: ,---- | | * Refile Targets... | **** TODO Clock me | :LOGBOOK:... | ... | * Refile Tasks... `---- I think this is the critical step. 8. Put point on Refile Tasks 9. Show task to refile with TAB 10. Put point on ** TODO Refile Me 11. Refile to Ten with C-c C-w Ten RET 12. Put point on Refile Me 13. Reveal with C-c C-r Shows that we are under TODO Ten. So far so good ,---- | | * Refile Targets... | **** TODO Clock me | :LOGBOOK:... | ... | ** TODO Ten | *** TODO Refile Me | * Refile Tasks `---- 14. Now repeat steps 10-13 but refile to 'Two' instead of 'Ten' This goes to the wrong place. This files under Nine for me ,---- | | * Refile Targets... | **** TODO Clock me | :LOGBOOK:... | ... | ** TODO Nine | *** TODO Refile Me | ** TODO Ten | * Refile Tasks `---- 15. Repeat steps 10-13 with refiling to 'Two' each time This moves Refile Me up one task at a time until it gets to Two ie. it refiles to Eight, then Seven, then Six, then Five, then Four then Three, then Two. If you show contents view with S-TAB and then refile it goes to the right place immediately. So this definitely has something to do with the folded view of the org file. I'll be _really_ happy when Carsten squashes this bug :) -Bernt