[POLL] Should org-copy/cut/paste-special handle inlinetasks specially? (was: BUG: org-cut-special on inlinetask kill until point-max)

2023-08-17 Thread Ihor Radchenko
Michael Dauer writes: > I understand your view. From the user perspective inline task are still > more a specialization of a task, which is a specialisation of a heading. > > Here is my implementation of how I see it that it should behave: > (defun pm-cut-special () > "Like org-cut-special but

Re: BUG: org-cut-special on inlinetask kill until point-max

2023-08-17 Thread Michael Dauer
I understand your view. From the user perspective inline task are still more a specialization of a task, which is a specialisation of a heading. Here is my implementation of how I see it that it should behave: (defun pm-cut-special () "Like org-cut-special but also works on inlinetask." (inter

Re: BUG: org-cut-special on inlinetask kill until point-max

2023-08-17 Thread Ihor Radchenko
Michael Dauer writes: > I probably mis-interpreted the code. Because then I would also fail for > normal headings. Just thinking about the symptoms I think the issue Is that > (org-end-of-subtree) works with type 'headline. And inlinetask is a > different type, right? Yes. Inlinetask is not cons

Re: BUG: org-cut-special on inlinetask kill until point-max

2023-08-17 Thread Michael Dauer
I probably mis-interpreted the code. Because then I would also fail for normal headings. Just thinking about the symptoms I think the issue Is that (org-end-of-subtree) works with type 'headline. And inlinetask is a different type, right? IMO org-mode should consistently treat inlinetasks includin

Re: BUG: org-cut-special on inlinetask kill until point-max

2023-08-17 Thread Ihor Radchenko
Michael Dauer writes: > I looked directly into the code and I think I found the issue: > (org-copy-subtree) calls (org-end-of-subtree) without providing an element. > But without an element this function just jumps to (point-max). This is not true. Please make sure that you are using the latest

Re: BUG: org-cut-special on inlinetask kill until point-max

2023-08-17 Thread Michael Dauer
I looked directly into the code and I think I found the issue: (org-copy-subtree) calls (org-end-of-subtree) without providing an element. But without an element this function just jumps to (point-max). I would expect a different behavior or (org-end-of-subtree). Since element is optional it should

Re: BUG: org-cut-special on inlinetask kill until point-max

2023-08-16 Thread Ihor Radchenko
Michael Dauer writes: > No. Here also * h2 gets killed by org-cut-special. You may need to pull the latest main. > What is REPRO_ARGS? org-onlinetask.el is included org repo anyway? See https://orgmode.org/manual/Feedback.html#Feedback REPRO_ARGS are just extra arguments passed to Emacs when o

Re: BUG: org-cut-special on inlinetask kill until point-max

2023-08-16 Thread Michael Dauer
No. Here also * h2 gets killed by org-cut-special. What is REPRO_ARGS? org-onlinetask.el is included org repo anyway? Ihor Radchenko schrieb am Mi., 16. Aug. 2023, 14:11: > Michael Dauer writes: > > > Put the point on the second line - the inlinetask "ilt". > > I tried the following: > > 1. ma

Re: BUG: org-cut-special on inlinetask kill until point-max

2023-08-16 Thread Ihor Radchenko
Michael Dauer writes: > Put the point on the second line - the inlinetask "ilt". I tried the following: 1. make repro REPRO_ARGS="/tmp/bug.org" 2. Move to **... ilt line * h1 *** ilt *** END ** h11 * h2 3. M-x org-cut-special * h1 *** END ** h11 * h2 As

Re: BUG: org-cut-special on inlinetask kill until point-max

2023-08-16 Thread Michael Dauer
Put the point on the second line - the inlinetask "ilt". Am Mi., 16. Aug. 2023 um 13:47 Uhr schrieb Ihor Radchenko < yanta...@posteo.net>: > Michael Dauer writes: > > > > * h1 > > *** ilt > > *** END > > ** h11 > > * h2 > > <<< > > org-cut-special somewhere on the se

Re: BUG: org-cut-special on inlinetask kill until point-max

2023-08-16 Thread Ihor Radchenko
Michael Dauer writes: > * h1 > *** ilt > *** END > ** h11 > * h2 > <<< > org-cut-special somewhere on the send line kills all but the first line. I am unable to reproduce. May you please provide more detailed steps? In particular, which line are you referring to? --

BUG: org-cut-special on inlinetask kill until point-max

2023-08-16 Thread Michael Dauer
>>> * h1 *** ilt *** END ** h11 * h2 <<< org-cut-special somewhere on the send line kills all but the first line. Org mode version 9.7-pre (release_9.6.7-594-gf03b83 I don't think that this bug existed in the previous versions.