Function: kotl-mode:up-level
kotl-mode:up-level is an interactive and byte-compiled function
defined in kotl-mode.el.
Signature
(kotl-mode:up-level ARG)
Documentation
Move up prefix ARG levels higher in current outline view.
Error if called interactively and cannot move to the desired cell.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
(defun kotl-mode:up-level (arg)
"Move up prefix ARG levels higher in current outline view.
Error if called interactively and cannot move to the desired cell."
(interactive "p")
(kotl-mode:maintain-region-highlight)
(if (< arg 0)
(kotl-mode:down-level (- arg))
;; Enable user to return to this previous position if desired.
(push-mark nil 'no-msg)
(let ((parent)
(lbl-sep-len (kview:label-separator-length kotl-kview))
result)
(while (and (> arg 0) (setq result (kcell-view:parent t lbl-sep-len)))
(or parent (setq parent result))
(setq arg (if (eq result 0) 0 (1- arg))))
;; Signal an error if called interactively and couldn't move up
;; at least 1 parent level.
(or (and parent (not (eq parent 0)))
(progn
(goto-char (mark t))
(pop-mark)
(when (called-interactively-p 'interactive)
(error "(kotl-mode:up-level): No parent level to which to move")))))))