Function: denote-grep--get-files-referenced-in-region

denote-grep--get-files-referenced-in-region is a byte-compiled function defined in denote.el.

Signature

(denote-grep--get-files-referenced-in-region START END)

Documentation

Return a list with all Denote files referenced between START and END.

START and END are buffer positions, as integers. A reference to a file is the mere presence of its identifier.

Return a list with the absoulte path of referenced files.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-grep--get-files-referenced-in-region (start end)
  "Return a list with all Denote files referenced between START and END.
START and END are buffer positions, as integers.  A reference to a file
is the mere presence of its identifier.

Return a list with the absoulte path of referenced files."
  (let ((id-list nil))
    (save-excursion
      (save-restriction
        (narrow-to-region start end)
        (goto-char (point-min))
        (while (re-search-forward denote-date-identifier-regexp nil t)
          (push (denote-get-path-by-id (match-string 0)) id-list))))
    id-list))