[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-cut-subtree should respect org-ctrl-k-protect-subtree
From: |
Rudolf Adamkovič |
Subject: |
Re: org-cut-subtree should respect org-ctrl-k-protect-subtree |
Date: |
Tue, 27 Aug 2024 16:15:11 +0200 |
Dan Drake <dan.drake@gmail.com> writes:
> I took at look at the source code, and it seems like a trivial change
> to make these two things act consistently: [...]
Dan,
Thank you for reporting the bug and even prototyping a solution.
I think the logic should be
extracted into a function,
and tested on all paths:
- `org-kill-note-or-show-branches' (`C-c C-k'),
- `org-cut-subtree' (`k' on first *) and
- `org-kill-line' (`C-k').
However, we should then also rename
`org-ctrl-k-protect-subtree'
to something more general, like
`org-protect-subtrees',
as it applies beyond "ctrl-k".
Rudy
--
"The whole science is nothing more than a refinement of everyday
thinking." --- Albert Einstein, 1879-1955
Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org