Function: hywiki-display-page
hywiki-display-page is a byte-compiled function defined in hywiki.el.
Signature
(hywiki-display-page &optional WIKIWORD FILE-NAME)
Documentation
Display an optional WIKIWORD page and return the page file.
Use hywiki-display-page-function to display the page.
Trigger an error if the page is not found.
If FILE-NAME is provided, it includes any #section from the WIKIWORD.
If WIKIWORD is omitted or nil and hywiki-display-page-function
is an interactive function, it is called interactively and prompts for
an existing or new HyWikiWord.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-display-page (&optional wikiword file-name)
"Display an optional WIKIWORD page and return the page file.
Use `hywiki-display-page-function' to display the page.
Trigger an error if the page is not found.
If FILE-NAME is provided, it includes any #section from the WIKIWORD.
If WIKIWORD is omitted or nil and `hywiki-display-page-function'
is an interactive function, it is called interactively and prompts for
an existing or new HyWikiWord."
(if (and (null wikiword) (commandp hywiki-display-page-function))
(call-interactively hywiki-display-page-function)
(when (null wikiword)
(setq wikiword (hywiki-word-read-new "Find HyWiki page: ")))
(let ((file (hywiki-get-page-file (or file-name wikiword))))
(funcall hywiki-display-page-function file)
;; Set referent attributes of current implicit button
(hattr:set 'hbut:current 'referent-type 'page)
(hattr:set 'hbut:current 'referent-value file)
file)))