From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Refiling within a document Date: Thu, 30 Jul 2009 17:33:23 -0400 Message-ID: <87vdl9zwik.fsf@gollum.intra.norang.ca> References: <82tz0tc2uu.fsf@gmail.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 1MWdFk-0003Uz-1U for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 17:33:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWdFg-0003Te-94 for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 17:33:31 -0400 Received: from [199.232.76.173] (port=60139 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWdFf-0003TV-Uq for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 17:33:27 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:50780) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWdFf-0004hs-M0 for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 17:33:27 -0400 In-Reply-To: <82tz0tc2uu.fsf@gmail.com> (Cian OConnor's message of "Thu\, 30 Jul 2009 21\:50\:17 +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: Cian OConnor Cc: emacs-orgmode@gnu.org Cian OConnor writes: > I really like refiling functionality in org-mode and use it quite a > bit. However one thing that annoys me is that quite often I simply want > to refile in the same buffer. Is there a way to do this that I've > missed? Or do I simply have to select the name of the current buffer as > I currently do. I have the following set for org-refile-targets: org-refile-targets is a variable defined in `org.el'. Its value is ((nil :maxlevel . 5) (org-agenda-files :maxlevel . 5)) This uses the current file (first) as a refile target. I prefix all my targets with filename so if I'm in x.org I can refile to x.org/SomeTask even if it is not in my org-agenda-files. You can control if your refile targets need filename prefixes or not by customizing the appropriate refile org variables. HTH, Bernt