kill-whole-line
works as I want. It cuts the line, and when I'm in org-mode
it cuts the whole collapsed subtree.
What I need is just that as copy instead of cut. There is a multitude of suggestions here how to copy a whole line, which all work, but in org-mode
they simply do not copy the whole collapsed subtree, they just copy the first line.
save-*
commands is performing the corresponding kill command and then immediately undoing/yanking the kill, e.g.C-k
followed byC-y
, as the former kill modifies thekill-ring
whereas the latter undo or yank does not. – Basil Dec 20 '17 at 18:31