Function: hywiki-word-from-reference

hywiki-word-from-reference is a byte-compiled function defined in hywiki.el.

Signature

(hywiki-word-from-reference REF)

Documentation

Return the HyWikiWord part of a reference (part before the #).

This does not test whether a referent exists for the HyWikiWord; call hywiki-referent-exists-p without an argument for that. Nor does it test whether the HyWikiWord reference is within an invalid context; call hywiki-non-hook-context-p for that.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-word-from-reference (ref)
  "Return the HyWikiWord part of a reference (part before the #).
This does not test whether a referent exists for the HyWikiWord; call
`hywiki-referent-exists-p' without an argument for that.  Nor does it
test whether the HyWikiWord reference is within an invalid context;
call `hywiki-non-hook-context-p' for that."
  (when (and (stringp ref)
	     (string-match hywiki-word-with-optional-suffix-exact-regexp ref))
    (match-string 1 ref)))