From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: org-refile-use-outline-path question Date: Wed, 12 Oct 2011 05:33:37 -0400 Message-ID: <87sjmyblla.fsf@norang.ca> References: <4E952BAA.50608@lbl.gov> <80ipnu3aek.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDvCN-0002Xs-UF for emacs-orgmode@gnu.org; Wed, 12 Oct 2011 05:34:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDvCJ-0007cG-0O for emacs-orgmode@gnu.org; Wed, 12 Oct 2011 05:34:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:46247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDvCI-0007c2-Q1 for emacs-orgmode@gnu.org; Wed, 12 Oct 2011 05:33:58 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RDvCB-0005YL-Uo for emacs-orgmode@gnu.org; Wed, 12 Oct 2011 11:33:51 +0200 In-Reply-To: <80ipnu3aek.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 12 Oct 2011 10:02:27 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org "Sebastien Vauban" writes: > Hi Arun, > > Arun Persaud wrote: >> I use the following settings to refile tasks >> >> (setq org-refile-use-outline-path 'file) >> (setq org-refile-targets '((org-agenda-files . (:maxlevel . 5)))) >> >> this has the nice effect that I can refile across different files, which >> I do use every now and then. >> For this I use: >> >> /level1/level2/... >> >> However mostly I refile to the same file and therefore I wish I could >> just use something like: >> >> level1/level2/... >> >> and it would refile using the current file, which at the moment doesn't >> work for me (at least the level1s of the current file are not part of >> the autocomplete, only files are). >> >> Is there a way that this can be done or can this be added? > > Not that I know of. > > I had the same wish, with eventually `.' or something like that to denote the > local file. But it's still on the TODO lists... Add an extra entry to org-refile-targets indicating the current file should be valid for refiling. I use --8<---------------cut here---------------start------------->8--- (setq org-refile-targets (quote ((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9)))) --8<---------------cut here---------------end--------------->8--- You'll still have to specify the current file in the path though with your setup. Regards, Bernt