Function: hyrolo-outline-demote
hyrolo-outline-demote is an interactive and byte-compiled function
defined in hyrolo.el.
Signature
(hyrolo-outline-demote &optional WHICH)
Documentation
Demote headings lower down the tree.
If transient-mark-mode(var)/transient-mark-mode(fun) is on, and mark is active, demote headings in
the region (from a Lisp program, pass region for WHICH). Otherwise:
without prefix argument, demote current heading and all headings in the
subtree (from a Lisp program, pass subtree for WHICH); with prefix
argument, demote 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-demote (&optional which)
"Demote headings lower down the tree.
If `transient-mark-mode' is on, and mark is active, demote headings in
the region (from a Lisp program, pass `region' for WHICH). Otherwise:
without prefix argument, demote current heading and all headings in the
subtree (from a Lisp program, pass `subtree' for WHICH); with prefix
argument, demote 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-demote which)) t))