Function: hywiki-page-read

hywiki-page-read is a byte-compiled function defined in hywiki.el.

Signature

(hywiki-page-read &optional PROMPT INITIAL)

Documentation

Prompt with completion for and return an existing HyWiki page name.

If point is on one, press RET immediately to use that one.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-page-read (&optional prompt initial)
  "Prompt with completion for and return an existing HyWiki page name.
If point is on one, press RET immediately to use that one."
  (let* ((completion-ignore-case t)
         (wikiword (or initial (hywiki-word-at-point)))
         (page (hywiki-page-exists-p wikiword)))
    (completing-read (if (stringp prompt) prompt "HyWiki Page: ")
		     (hywiki-get-page-list)
		     nil t initial nil (when page wikiword))))