branch: externals/denote
commit 18ae2a6847fd4ece06b6f9bad726aa1c149ceedc
Author: Jean-Philippe Gagné Guay <[email protected]>
Commit: Jean-Philippe Gagné Guay <[email protected]>

    Delete duplicates in denote-retrieve--files-in-xref
---
 denote-retrieve.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/denote-retrieve.el b/denote-retrieve.el
index 9f9e40bf73..c83785f5c0 100644
--- a/denote-retrieve.el
+++ b/denote-retrieve.el
@@ -103,9 +103,10 @@ The xrefs are returned as an alist."
   "Return sorted file names sans directory from XREFS.
 Parse `denote-retrieve--xrefs'."
   (sort
-   (mapcar (lambda (x)
-             (denote--file-name-relative-to-denote-directory (car x)))
-           xrefs)
+   (delete-dups
+    (mapcar (lambda (x)
+              (denote--file-name-relative-to-denote-directory (car x)))
+            xrefs))
    #'string-lessp))
 
 (defun denote-retrieve--proces-grep (identifier)

Reply via email to