From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Possible bug with refile Date: Sun, 12 Jul 2009 19:51:30 +0200 Message-ID: <4a5a22a3.1438560a.16e5.ffff8a9b@mx.google.com> 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 1MQ3D5-0004GB-Lk for emacs-orgmode@gnu.org; Sun, 12 Jul 2009 13:51:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQ3D4-0004Er-EH for emacs-orgmode@gnu.org; Sun, 12 Jul 2009 13:51:35 -0400 Received: from [199.232.76.173] (port=53886 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQ3D4-0004EW-6h for emacs-orgmode@gnu.org; Sun, 12 Jul 2009 13:51:34 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:59823) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQ3D3-0005IT-RJ for emacs-orgmode@gnu.org; Sun, 12 Jul 2009 13:51:34 -0400 Received: by fg-out-1718.google.com with SMTP id l26so504901fgb.7 for ; Sun, 12 Jul 2009 10:51:32 -0700 (PDT) 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: Emacs-orgmode mailing list My org-mode usage had become a bit messy so I decided to go back to first principles and follow through Bernd Hansen's tutorial here http://doc.norang.ca/org-mode.html#sec-1 One real eye opener was the completion on category levels inside files as described here: http://doc.norang.ca/org-mode.html#Refiling (The use of refile as a staging area makes everything a lot easier IMO too). Anyway I removed my numerous agenda-files from my org.el settings and have: (setq org-refile-targets (quote ((org-agenda-files :maxlevel . 5) (nil :maxlevel . 5)))) where org-agenda-files is set to a *directory name* as described in the manual. This set up causes the following error when trying to refile from within a new org item buffer (C-c C-w). ,---- | expand-file-name(nil) | org-get-refile-targets(nil) | org-refile-get-location("Refile to: " nil nil) | org-refile(nil) | call-interactively(org-refile nil nil) `---- regards r.