"Jacob S. Gordon" <[email protected]> writes:

> Suppose you have a task with an Org source block containing another
> task, both with scheduling or deadline information, e.g.
>
> * TODO Some bug report
> SCHEDULED: <2026-05-18 Mon>
>
> Reproduction steps […]
>
> #+begin_src org
> ,* TODO Headline
> SCHEDULED: <2026-05-17 Sun>
> #+end_src
>
> If you call ‘org-schedule’ or ‘org-deadline’ with a single prefix
> argument ‘C-u’, it should remove the schedule or deadline,
> respectively, but you’ll also find that it’s been removed from the
> source block.  This is because ‘org-remove-timestamp-with-keyword’
> just does a regex replacement of all matching lines in the item.
>
> Since the keywords need to appear immediately after the task, I think
> the replacement in ‘org-remove-timestamp-with-keyword’ can just be
> done in reverse, and stop after a single replacement.

Thanks for reporting!
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=4b36f18e2

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to