I find that org-paste-subtree works perfectly all the time for
headlines, and that org-yank does not work for headlines any time the
levels are wrong. But I just started using them.
Approximate and prob wrong:
(defun org-yank-possibly-adjusted ()
(save-excursion
(if (and org-yank-adjust (org-kill-is-subtree-p))
(call-interactively 'org-paste-subtree)
(call-interactively 'yank))))
(defun org-yank ()
"Yank, and if the yanked text is a single subtree, fold it.
In fact, if the yanked text is a sequence of subtrees, fold all of them."
(interactive)
(if org-yank-folded-subtrees
(let ((beg (point)) end)
(org-yank-possibly-adjusted)
...
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode