Function: kvspec:compute
kvspec:compute is a byte-compiled function defined in kvspec.el.
Signature
(kvspec:compute)
Documentation
Compute and return current view spec string.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kvspec.el
(defun kvspec:compute ()
"Compute and return current view spec string."
(concat
;; a - Show all cells and cell lines.
;; Never compute this setting (use it only within links) since it will
;; expose all carefully hidden outline items if the user forgets to turn
;; it off when he resets the view specs.
;; b - blank separator lines
(if (kview:get-attr kotl-kview 'blank-lines) "b")
;; c - cutoff lines per cell
(let ((lines (kview:get-attr kotl-kview 'lines-to-show)))
(if (zerop lines)
nil
(concat "c" (int-to-string lines))))
;; e - ellipses on
(if selective-display-ellipses "e")
;; l - hide some levels
(let ((levels (kview:get-attr kotl-kview 'levels-to-show)))
(if (zerop levels)
nil
(concat "l" (int-to-string levels))))
;; n - numbering type
(let ((type (kview:label-type kotl-kview)))
(cond ((eq type 'no) nil)
((eq type kview:default-label-type) "n")
(t (concat "n" (char-to-string
(car (rassq (kview:label-type kotl-kview)
kvspec:label-type-alist)))))))))