Function: hywiki-add-bookmark
hywiki-add-bookmark is an interactive and byte-compiled function
defined in hywiki.el.
Signature
(hywiki-add-bookmark WIKIWORD)
Documentation
Make WIKIWORD display a bookmark at point and return the action.
If WIKIWORD is invalid, trigger a user-error if called interactively
or return nil if not.
After successfully adding the bookmark, 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-bookmark (wikiword)
"Make WIKIWORD display a bookmark at point and return the action.
If WIKIWORD is invalid, trigger a `user-error' if called interactively
or return nil if not.
After successfully adding the bookmark, 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 Bookmark HyWikiWord: "))))
(require 'bookmark)
(if (string-empty-p wikiword)
(error "(hywiki-add-bookmark): No bookmark specified")
(bookmark-set wikiword)
(hywiki-add-referent wikiword (cons 'bookmark wikiword))))