Function: hywiki-maybe-at-wikiword-beginning

hywiki-maybe-at-wikiword-beginning is a byte-compiled function defined in hywiki.el.

Signature

(hywiki-maybe-at-wikiword-beginning)

Documentation

Return non-nil if at bol or previous character is one preceding a HyWikiWord.

When non-nil, the value returned is 0 for bol and the preceding character, otherwise.

Do not test whether or not a page exists for the HyWikiWord. Use hywiki-get-referent to determine whether a HyWiki page exists.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-maybe-at-wikiword-beginning ()
  "Return non-nil if at bol or previous character is one preceding a HyWikiWord.
When non-nil, the value returned is 0 for bol and the preceding character,
otherwise.

Do not test whether or not a page exists for the HyWikiWord.
Use `hywiki-get-referent' to determine whether a HyWiki page exists."
  ;; Ignore wikiwords preceded by any non-whitespace character, except
  ;; any of these: [({<"'`'
  (when (or (bolp)
	    (string-match (regexp-quote (char-to-string (char-before)))
			  "\[\(\{\<\"'`\t\n\r\f "))
    (or (char-before) 0)))