Make denote-link--collect-identifiers remove duplicates

Thanks to 82Kang for reporting the bug in issue 694:
<https://github.com/protesilaos/denote/issues/694>.
This commit is contained in:
Protesilaos 2026-07-29 12:55:45 +03:00
parent c8aa01c56a
commit b4978d83cb
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -5545,12 +5545,12 @@ the active region specially, is up to it."
(defun denote-link--collect-identifiers (regexp)
"Return collection of identifiers in buffer matching REGEXP."
(let (matches)
(let ((matches nil))
(save-excursion
(goto-char (point-min))
(while (re-search-forward regexp nil t)
(push (match-string-no-properties 1) matches)))
matches))
(seq-uniq matches)))
(make-obsolete 'denote-link--expand-identifiers nil "4.1.0")