Function: org-roam--get-keyword

org-roam--get-keyword is a byte-compiled function defined in org-roam-utils.el.

Signature

(org-roam--get-keyword NAME &optional BOUND)

Documentation

Return keyword property NAME in current buffer.

If BOUND, scan up to BOUND bytes of the buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-utils.el
(defun org-roam--get-keyword (name &optional bound)
  "Return keyword property NAME in current buffer.
If BOUND, scan up to BOUND bytes of the buffer."
  (save-excursion
    (let ((re (format "^#\\+%s:[ \t]*\\([^\n]+\\)" (upcase name))))
      (goto-char (point-min))
      (when (re-search-forward re bound t)
        (buffer-substring-no-properties (match-beginning 1) (match-end 1))))))