Function: kfile:is-p

kfile:is-p is an autoloaded and byte-compiled function defined in kfile.el.

Signature

(kfile:is-p)

Documentation

Iff current buffer contains a koutline, return file format version string.

If not a koutline, return nil. This works both for unformatted and formatted koutlines.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kfile.el
;;;###autoload
(defun kfile:is-p ()
  "Iff current buffer contains a koutline, return file format version string.
If not a koutline, return nil.  This works both for unformatted
and formatted koutlines."
  (let (ver-string)
    (save-excursion
      (save-restriction
	(widen)
	(goto-char (point-min))
	(ignore-errors
	  (setq ver-string (read (current-buffer)))
	  (and (stringp ver-string) (string-match "^Kotl-" ver-string)
	       ver-string))))))