From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Remove current heading from refile targets? Date: Mon, 18 Jul 2011 22:58:58 +0200 Message-ID: <87livvxq3x.fsf@gnu.org> References: <878vrwk8pk.fsf@riotblast.dunsmor.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qiuti-0004cP-ND for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 16:58:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qiutg-0006Ln-Jv for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 16:58:38 -0400 Received: from mail-fx0-f52.google.com ([209.85.161.52]:40677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qiutg-0006Lh-DV for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 16:58:36 -0400 Received: by fxd18 with SMTP id 18so5879800fxd.39 for ; Mon, 18 Jul 2011 13:58:34 -0700 (PDT) In-Reply-To: <878vrwk8pk.fsf@riotblast.dunsmor.com> (Jason Dunsmore's message of "Sun, 17 Jul 2011 14:28:39 -0500") 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: Jason Dunsmore Cc: Org-mode mailing list 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. Thanks, -- Bastien