Bastien <b...@altern.org> writes:

> Hi Jason,
>
> Jason Dunsmore <ja...@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 via email to