From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jost Burkardt Subject: Re: problem with org-refile remains in 5.20 Date: Thu, 07 Feb 2008 19:39:23 +0100 Message-ID: <87k5lg4nms.fsf@web.de> References: <87sl0528jt.fsf@web.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 1JNBeo-0005FE-CV for emacs-orgmode@gnu.org; Thu, 07 Feb 2008 13:39:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JNBen-0005EC-No for emacs-orgmode@gnu.org; Thu, 07 Feb 2008 13:39:33 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNBen-0005Dz-Kn for emacs-orgmode@gnu.org; Thu, 07 Feb 2008 13:39:33 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JNBem-0002yk-SJ for emacs-orgmode@gnu.org; Thu, 07 Feb 2008 13:39:33 -0500 In-Reply-To: (Carsten Dominik's message of "Thu, 7 Feb 2008 08:38:28 +0100") 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: Carsten Dominik Cc: emacs-org I think the reason, I get this behaviour is the following code in org-refile: ... (goto-char (or (save-excursion (if reversed (outline-next-heading) (outline-get-next-sibling))) (point-max))) ... before org-refile moves the point to the correct position, as I have not set `reversed', outline-get-next-sibling is called, as there is no sibling to "*** Notes" the point is moved to "** B", but the call returns nil, so finally (point-max) moves to the end of the file. So the similar "*** Notes"-item below Project B was misleading me. Can you reproduce this one? I tested it on: GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of 2007-12-31 on wodka Org-mode version 5.21 -- Jost Carsten Dominik writes: > I cannot reproduce this problem anymore, it works fine for me. > Could someone else please try? > > - Carsten > > On Feb 6, 2008, at 8:23 PM, Jost Burkardt wrote: > >> Hi, >> >> org-refile still does not work correctly for me. it seems that the >> refiling-bug from 5.19 still remains in 5.20. When refiling the entry >> "something to refile to Project/A/Notes" to "Project/A/Notes", >> org-refile sitll puts it to "Project/B/Notes" instead to "Project/A/ >> Notes" >> >> >> ----- BEGIN TEST.org --- >> * Stuff >> ** something to refile to Project/A/Notes >> * Projects >> ** A >> *** Notes >> ** B >> *** Notes >> ----- END TEST.org ----- >> >> -- >> Jost > >