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: Thu, 21 Jul 2011 09:15:36 -0500	[thread overview]
Message-ID: <877h7bhg8n.fsf@riotblast.dunsmor.com> (raw)
In-Reply-To: <8739hz4wb0.fsf@gnu.org> (Bastien's message of "Thu, 21 Jul 2011 15:06:59 +0200")

Bastien <bzg@altern.org> writes:

> Hi Jason,
>
> Jason Dunsmore <jason@dunsmor.com> writes:
>
>> It looks like it removes top-level headings from the refile targets, but
>> nothing below that.  For example, in the org file below, place the
>> cursor on Subheading1 and type "M-x org-refile".  The current
>> heading will be in the list of refile targets.
>>
>> * Heading1
>> ** Subheading1
>> * Heading2
>
> Okay, I didn't get it first.
>
> Please test this attached patch against latest git.

Looks good except for one quirk.  If the heading has a TODO keyword, it
isn't excluded.  Example:

--8<---------------cut here---------------start------------->8---
* Heading1
** TODO Subheading1
* Heading2
--8<---------------cut here---------------end--------------->8---

Thanks!

  reply	other threads:[~2011-07-21 14:15 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
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 [this message]
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=877h7bhg8n.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).