From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Dunsmore Subject: Re: Remove current heading from refile targets? Date: Mon, 18 Jul 2011 17:27:03 -0500 Message-ID: <87r55ndy2w.fsf@riotblast.dunsmor.com> References: <878vrwk8pk.fsf@riotblast.dunsmor.com> <87livvxq3x.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiwHR-0003Qy-3p for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 18:27:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiwHL-000127-3B for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 18:27:11 -0400 Received: from deathroller.dunsmor.com ([98.129.169.48]:36107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiwHK-00011k-8y for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 18:27:06 -0400 In-Reply-To: <87livvxq3x.fsf@gnu.org> (Bastien's message of "Mon, 18 Jul 2011 22:58:58 +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: Bastien Cc: Org-mode mailing list Bastien writes: > Hi Jason, > > Jason Dunsmore writes: > >> I noticed that when I go to refile a heading, the heading that I'm >> refiling is listed in the refile targets. If I choose to refile the >> heading to itself, the following error is displayed: >> >> org-refile: Cannot refile to position inside the tree or region >> >> When I'm choosing a refile target, the current heading gets in the way. >> Would it make sense to remove the current heading from the refile >> targets? > > Indeed. > > I've just pushed a fix for this. > >> I have org-completion-use-ido set to `t', so I'm using the ido >> interface to refile. > > I don't use `org-completion-use-ido' so I cannot test, but it should > work okay -- please let me know if there is any problem. Hm, I don't see any change with or without org-completion-use-ido set. The current heading still shows up in the refile targets. Here are my org-refile related configs: (setq org-refile-targets '((nil . (:maxlevel . 2)))) (setq org-refile-allow-creating-parent-nodes t) (setq org-refile-use-outline-path t) (setq org-refile-use-cache nil) Regards, Jason