mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
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:
parent
c8aa01c56a
commit
b4978d83cb
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue