Function: hyrolo-outline-promote
hyrolo-outline-promote is an interactive and byte-compiled function
defined in hyrolo.el.
Signature
(hyrolo-outline-promote &optional WHICH)
Documentation
Promote headings higher up the tree.
If transient-mark-mode(var)/transient-mark-mode(fun) is on, and mark is active, promote headings in
the region (from a Lisp program, pass region for WHICH). Otherwise:
without prefix argument, promote current heading and all headings in the
subtree (from a Lisp program, pass subtree for WHICH); with prefix
argument, promote just the current heading (from a Lisp program, pass
nil for WHICH, or do not pass any argument).
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-outline-promote (&optional which)
"Promote headings higher up the tree.
If `transient-mark-mode' is on, and mark is active, promote headings in
the region (from a Lisp program, pass `region' for WHICH). Otherwise:
without prefix argument, promote current heading and all headings in the
subtree (from a Lisp program, pass `subtree' for WHICH); with prefix
argument, promote just the current heading (from a Lisp program, pass
nil for WHICH, or do not pass any argument)."
(interactive
(progn
(barf-if-buffer-read-only)
(list (if (and transient-mark-mode mark-active) 'region
(outline-back-to-heading)
(if current-prefix-arg nil 'subtree)))))
(hyrolo-funcall-match (lambda () (outline-promote which)) t))