Function: hywiki-word-create

hywiki-word-create is an autoloaded, interactive and byte-compiled function defined in hywiki.el.

Signature

(hywiki-word-create WIKIWORD &optional ARG)

Documentation

Create a HyWiki referent for WIKIWORD and return it; don't display it.

This replaces any existing referent the WIKIWORD may have.

With either hywiki-referent-prompt-flag set or optional prefix ARG, prompt for and choose a typed referent, otherwise, create and/or display a HyWiki page. See hywiki-referent-menu for valid referent types.

Use hywiki-get-referent to test for and retrieve an existing HyWikiWord referent.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
;;;###autoload
(defun hywiki-word-create (wikiword &optional arg)
  "Create a HyWiki referent for WIKIWORD and return it; don't display it.
This replaces any existing referent the WIKIWORD may have.

With either `hywiki-referent-prompt-flag' set or optional prefix ARG,
prompt for and choose a typed referent, otherwise, create and/or display
a HyWiki page.  See `hywiki-referent-menu' for valid referent types.

Use `hywiki-get-referent' to test for and retrieve an existing HyWikiWord
referent."
  (interactive (list (or (hywiki-word-at)
			 (hywiki-word-read-new
			  (format "Create HyWikiWord %s: "
				  (if (or (and hywiki-referent-prompt-flag
					       (null current-prefix-arg))
					  current-prefix-arg)
				      "referent"
				    "page"))))
		     current-prefix-arg))
  (if (or arg hywiki-referent-prompt-flag)
      (hywiki-create-referent wikiword t)
    (hywiki-create-page wikiword t)))