Function: hywiki-page-read-new

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

Signature

(hywiki-page-read-new &optional PROMPT INITIAL)

Documentation

Prompt with completion for and return an existing/new 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-new (&optional prompt initial)
  "Prompt with completion for and return an existing/new HyWiki page name.
If point is on one, press RET immediately to use that one."
  (let ((completion-ignore-case t)
        page)
    (while (null page)
      (setq page (completing-read
                  (if (stringp prompt) prompt "HyWiki Page: ")
		  (hywiki-get-page-list)
		  nil nil initial nil (hywiki-word-at-point)))
      ;; Prevent selection of non-page HyWikiWords
      (unless (memq (car (hywiki-get-referent page)) '(page nil))
        (setq page nil)))
    page))