Function: hywiki-get-glossary-terms

hywiki-get-glossary-terms is a byte-compiled function defined in hywiki.el.

Signature

(hywiki-get-glossary-terms)

Documentation

Return a completion list of terms in the HyWiki glossary file.

Call hywiki-get-glossary-file for the full path to this file.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260822.1645/hywiki.el
(defun hywiki-get-glossary-terms ()
  "Return a completion list of terms in the HyWiki glossary file.
Call `hywiki-get-glossary-file' for the full path to this file."
  (let* ((shell-command-buffer-name "*hywiki-glossary-terms*")
	 (glossary (hywiki-get-glossary-file))
	 (glossary-terms (when (and glossary (file-readable-p glossary)
				    (not (hypb:empty-file-p glossary)))
			   (read (shell-command-to-string
                                  (format "grep -E '^\\*+ *[A-Z]' %s | sed -E 's/\\*+[ \t]*([^:\;]+).*/\"\\1\"/' | echo \"\(\" $(cat -) \"\)\""
                                          (hywiki-get-glossary-file)))))))
    glossary-terms))