emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 18ae2a6847 1/2: Delete duplicates in denote-retr


From: ELPA Syncer
Subject: [elpa] externals/denote 18ae2a6847 1/2: Delete duplicates in denote-retrieve--files-in-xref
Date: Sun, 10 Jul 2022 16:57:28 -0400 (EDT)

branch: externals/denote
commit 18ae2a6847fd4ece06b6f9bad726aa1c149ceedc
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>

    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

[Prev in Thread] Current Thread [Next in Thread]