emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jason Dunsmore <jason@dunsmor.com>
To: Bastien <bzg@altern.org>
Cc: Org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Remove current heading from refile targets?
Date: Mon, 18 Jul 2011 17:27:03 -0500	[thread overview]
Message-ID: <87r55ndy2w.fsf@riotblast.dunsmor.com> (raw)
In-Reply-To: <87livvxq3x.fsf@gnu.org> (Bastien's message of "Mon, 18 Jul 2011 22:58:58 +0200")

Bastien <bzg@altern.org> writes:

> Hi Jason,
>
> Jason Dunsmore <emacs-orgmode@dunsmor.com> 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

  reply	other threads:[~2011-07-18 22:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-17 19:28 Remove current heading from refile targets? Jason Dunsmore
2011-07-18 20:58 ` Bastien
2011-07-18 22:27   ` Jason Dunsmore [this message]
2011-07-18 22:49     ` Bastien
2011-07-19 14:31       ` Jason Dunsmore
2011-07-21 13:06         ` Bastien
2011-07-21 14:15           ` Jason Dunsmore
2011-07-21 14:52             ` Bastien
2011-07-21 15:03               ` Jason Dunsmore
2011-07-22  9:22                 ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r55ndy2w.fsf@riotblast.dunsmor.com \
    --to=jason@dunsmor.com \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).