Function: kvspec:show-lines-this-cell
kvspec:show-lines-this-cell is a byte-compiled function defined in
kvspec.el.
Signature
(kvspec:show-lines-this-cell NUM)
Documentation
Assume current cell is fully expanded and collapse to show NUM lines within it.
If NUM is less than 1 or greater than the number of lines available, the cell remains fully expanded.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kvspec.el
(defun kvspec:show-lines-this-cell (num)
"Assume current cell is fully expanded and collapse to show NUM lines within it.
If NUM is less than 1 or greater than the number of lines
available, the cell remains fully expanded."
;; Use free variable kview-label-sep-len bound in kview:map-* for speed.
(unless (< num 1)
(let ((_start (goto-char (kcell-view:start (point) kview-label-sep-len)))
(end (kcell-view:end-contents)))
;; Hide all but num lines of the cell.
(and (search-forward "\n" end t num)
(outline-flag-region (1- (point)) end t)))))