Re: [fr] org-copy-subtree or so with no header

2024-01-12 Thread Ihor Radchenko
Samuel Wales  writes:

> idk if 2 is a bug vs. overly strict behavior.  org-export-with-tasks
> is technically doing what it is documented to do.  but only
> technically.
>
> it is not useful to me for it to fail to export when you explicitly
> try to export a subtree that is forbidden by the combinatin of o-e-w-t
> and the kw at top.

I still do not understand what problem you are talking about.

I tried

#+EXCLUDE_TAGS: foo
#+options: tasks:nil
* TODO  This is test :foo:
** Bar
** Baz
text

Then, I C-c C-e C-s t U and I got the subtree exported even though the
exported heading has both todo keyword and the excluded tag.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [fr] org-copy-subtree or so with no header

2024-01-11 Thread Samuel Wales
idk if 2 is a bug vs. overly strict behavior.  org-export-with-tasks
is technically doing what it is documented to do.  but only
technically.

it is not useful to me for it to fail to export when you explicitly
try to export a subtree that is forbidden by the combinatin of o-e-w-t
and the kw at top.



Re: [fr] org-copy-subtree or so with no header

2024-01-11 Thread Ihor Radchenko
Samuel Wales  writes:

> [there is more that could in principle be discussed as an /analogous/
> topic, perhaps for the picky sake of keeping orthogonality across org
> features in mind, but i don't have it in me to cover.  to adumbrate:
> 1] allowing choosing exporting a subtree with or without the top
> header similar to the above and 2] allowing /forcing/ exporting
> subtrees, again with or without exporting the top header just as in
> [1], even when the todo kw on the header in conjunction with
> org-export-with-tasks has inhibited exporting the subtree.  i have for
> many years waned both feaures also.  but i might not be able to
> provide further clarification or particpate in the discussion for
> unrelated reasons.  it is just an extraneous comment for those who get
> what i am talking about, if any.]

If I understand correctly, 1] is covered by body-only option.
2] is probably a bug. It would help if you provide a more clear example
illustrating the problem.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [fr] org-copy-subtree or so with no header

2024-01-11 Thread Ihor Radchenko
Samuel Wales  writes:

> * top top
> ^*** my example header
> text
> this is an entry
> it's also a subtree
> it is an example of an almost trivial subtree, i.e. text but no child entries.
>
>
> with point at ^, i press c, which copies the whole example entry
> including the header/heading.  great speed command.  it is configured
> by assigning org-copy-subtree to the speed command.
>
> what i want is, the exact same thing, which i will assign to C, except
> that the line that point is on is not part of hte copy.  essentially
> an org-copy-subtree--no-heading command.

IMHO, this is a bit too niche use-case. I will see what others say.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [fr] org-copy-subtree or so with no header

2024-01-09 Thread Samuel Wales
hi ihor,

more below.

On 1/9/24, Ihor Radchenko  wrote:
> Samuel Wales  writes:
>
>> i set c speed command to copy subtree.  i'd like to set C to copy
>> subtree without top header.  idk how to expand subtree temporarily.
>>
>> i thought it MIGHT be a useful fr.
>
> May you illustrate your request with an example?

sure, thanks for interest.


* top top
^*** my example header
text
this is an entry
it's also a subtree
it is an example of an almost trivial subtree, i.e. text but no child entries.


with point at ^, i press c, which copies the whole example entry
including the header/heading.  great speed command.  it is configured
by assigning org-copy-subtree to the speed command.

what i want is, the exact same thing, which i will assign to C, except
that the line that point is on is not part of hte copy.  essentially
an org-copy-subtree--no-heading command.


[more complexity, perhaps unnecessary: if there are child entries,
again the result is exactly like org-copy-subtree except without the
line/header/heading point is on.]

===

[there is more that could in principle be discussed as an /analogous/
topic, perhaps for the picky sake of keeping orthogonality across org
features in mind, but i don't have it in me to cover.  to adumbrate:
1] allowing choosing exporting a subtree with or without the top
header similar to the above and 2] allowing /forcing/ exporting
subtrees, again with or without exporting the top header just as in
[1], even when the todo kw on the header in conjunction with
org-export-with-tasks has inhibited exporting the subtree.  i have for
many years waned both feaures also.  but i might not be able to
provide further clarification or particpate in the discussion for
unrelated reasons.  it is just an extraneous comment for those who get
what i am talking about, if any.]



Re: [fr] org-copy-subtree or so with no header

2024-01-09 Thread Ihor Radchenko
Samuel Wales  writes:

> i set c speed command to copy subtree.  i'd like to set C to copy
> subtree without top header.  idk how to expand subtree temporarily.
>
> i thought it MIGHT be a useful fr.

May you illustrate your request with an example?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [fr] org-copy-subtree or so with no header

2024-01-08 Thread Samuel Wales
[i should not have mentioned expanding subtree temporarily as idk how
to code it in general.]