mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Check in denote--file-has-backlinks-p whether link matches file id
This commit is contained in:
parent
444db90dab
commit
f42b6d663b
|
|
@ -6050,8 +6050,12 @@ Also see `denote-get-links'."
|
|||
(with-temp-buffer
|
||||
(insert-file-contents file)
|
||||
(goto-char (point-min))
|
||||
(when (re-search-forward link-regexp nil t)
|
||||
(throw 'has-backlinks t))))))))
|
||||
(while (re-search-forward link-regexp nil t)
|
||||
(when
|
||||
(string-equal
|
||||
(caar (denote--inside-link-regexp-p link-regexp (point)))
|
||||
id)
|
||||
(throw 'has-backlinks t)))))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun denote-find-backlink ()
|
||||
|
|
|
|||
Loading…
Reference in a new issue