Function: kcell-view:collapse

kcell-view:collapse is a byte-compiled function defined in kview.el.

Signature

(kcell-view:collapse &optional POS LBL-SEP-LEN)

Documentation

Collapse cell at optional POS or point to a single line within the current view.

Optional LBL-SEP-LEN is the length of the separation between a cell's label and the start of its contents.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kview.el
(defun kcell-view:collapse (&optional pos lbl-sep-len)
  "Collapse cell at optional POS or point to a single line within the current view.
Optional LBL-SEP-LEN is the length of the separation between
a cell's label and the start of its contents."
  (save-excursion
    (goto-char (kcell-view:start pos lbl-sep-len))
    (kview:end-of-actual-line)
    (outline-flag-region (point) (kcell-view:end-contents) t)))