From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-refile bug? org-back-to-heading: before first heading Date: Thu, 17 Jan 2008 12:14:09 +0100 Message-ID: References: <87wsq9fito.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v915) 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 1JFShK-0001rq-Uc for emacs-orgmode@gnu.org; Thu, 17 Jan 2008 06:14:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFShK-0001qt-99 for emacs-orgmode@gnu.org; Thu, 17 Jan 2008 06:14:14 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFShJ-0001qh-VU for emacs-orgmode@gnu.org; Thu, 17 Jan 2008 06:14:14 -0500 Received: from ug-out-1314.google.com ([66.249.92.174]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JFShJ-0004sW-Gz for emacs-orgmode@gnu.org; Thu, 17 Jan 2008 06:14:13 -0500 Received: by ug-out-1314.google.com with SMTP id a2so367099ugf.48 for ; Thu, 17 Jan 2008 03:14:12 -0800 (PST) In-Reply-To: <87wsq9fito.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org Same here, excellent report, just took me 5 minutes to find and fix the bug, thanks! - Carsten On Jan 17, 2008, at 12:32 AM, Bernt Hansen wrote: > Hi Carsten, > > I'm playing with org-refile and in some cases it's not working for me. > > Here's a test.org file and minimal emacs setup you can try to use to > reproduce the problem. > > Org-mode version 5.18a > GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) > of 2007-11-03 on pacem, modified by Debian > > ,----[ ~/minimal.emacs ] > | (global-font-lock-mode t) > | (add-to-list 'load-path (expand-file-name "~/git/org-mode")) > | (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) > | (require 'org-install) > | (define-key global-map "\C-ca" 'org-agenda) > | (custom-set-variables > | '(org-agenda-files (quote ("~/org/test.org")))) > | (setq org-use-fast-todo-selection t) > `---- > > ,----[ test.org ] > | #+STARTUP: contents > | * one > | ** TODO one-one > | * Two > | ** TODO Two-one > | SCHEDULED: <2008-01-16 Wed> > | ** TODO Refile me to one > `---- > > Now do the following: > > $ emacs -q -l ~/minimal.emacs > > | Key Sequence | > Description > | > |------------------------ > + > -------------------------------------------------------------------------| > | C-a a a | Go to agenda for the > week | > | down arrow | Move to scheduled task Two- > one | > | RETURN | Go to task in > test.org | > | down arrow | Go to task ** TODO Refile me to > one | > | C-c C-w | org- > refile | > | o TAB | Refile to * > one | > > I get the following error text: > > org-back-to-heading: before first heading > > If I try to move back to the org file from the agenda by hitting > return > on the displayed scheduled task I get this error: > > call-interactively: Wrong type argument: integer-or-marker-p, nil > > --- > > If I don't display the agenda first... and just find-file to > ~/org/test.org the org-refile works fine. > > Regards, > Bernt > > > > > > _______________________________________________ > 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