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

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

[nongnu] elpa/denote-refs fcfaeeac4d 2/4: Don't duplicate files in links


From: ELPA Syncer
Subject: [nongnu] elpa/denote-refs fcfaeeac4d 2/4: Don't duplicate files in links section
Date: Fri, 30 Dec 2022 04:58:40 -0500 (EST)

branch: elpa/denote-refs
commit fcfaeeac4d108f9b076098846c94aca19da131fb
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>

    Don't duplicate files in links section
    
    * denote-refs.el (denote-refs--fetch): Don't duplicate files in
    links section.
---
 denote-refs.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/denote-refs.el b/denote-refs.el
index 9c76275bc8..e9b9459faf 100644
--- a/denote-refs.el
+++ b/denote-refs.el
@@ -201,10 +201,11 @@ The car is PATH relative to user option 
`denote-directory'."
              (and (buffer-file-name)
                   (file-exists-p (buffer-file-name))
                   (mapcar #'denote-refs--make-path-relative
-                          (denote-link--expand-identifiers
-                           (denote--link-in-context-regexp
-                            (denote-filetype-heuristics
-                             (buffer-file-name))))))))
+                          (delete-dups
+                           (denote-link--expand-identifiers
+                            (denote--link-in-context-regexp
+                             (denote-filetype-heuristics
+                              (buffer-file-name)))))))))
       ('backlinks
        (setq denote-refs--backlinks
              (and (buffer-file-name)



reply via email to

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