Function: hywiki-add-key-series
hywiki-add-key-series is an interactive and byte-compiled function
defined in hywiki.el.
Signature
(hywiki-add-key-series WIKIWORD)
Documentation
Make WIKIWORD invoke a prompted for key series and return it.
If WIKIWORD is invalid, trigger a user-error if called interactively
or return nil if not.
After successfully adding the key series, run hywiki-add-referent-hook.
Use hywiki-get-referent to determine whether WIKIWORD exists prior to
calling this function.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-add-key-series (wikiword)
"Make WIKIWORD invoke a prompted for key series and return it.
If WIKIWORD is invalid, trigger a `user-error' if called interactively
or return nil if not.
After successfully adding the key series, run `hywiki-add-referent-hook'.
Use `hywiki-get-referent' to determine whether WIKIWORD exists prior to
calling this function."
(interactive (list (or (hywiki-word-at)
(hywiki-word-read-new "Add/Edit HyWikiWord: "))))
(let ((key-series (read-string "Key series (with or without {}): ")))
(unless (string-match-p "\\`{.+}\\'" key-series)
(setq key-series (concat "{" (string-trim key-series) "}")))
(hywiki-add-referent wikiword (cons 'key-series key-series))))