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

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

[elpa] externals/denote aea9ebb32f 1/4: Add TODO for denote--file-has-ba


From: ELPA Syncer
Subject: [elpa] externals/denote aea9ebb32f 1/4: Add TODO for denote--file-has-backlinks-p
Date: Wed, 4 Sep 2024 03:57:50 -0400 (EDT)

branch: externals/denote
commit aea9ebb32f5c2dd3069f060fc8e38ee3d7cce1ca
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Add TODO for denote--file-has-backlinks-p
---
 denote.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/denote.el b/denote.el
index 348137ac91..702740bc49 100644
--- a/denote.el
+++ b/denote.el
@@ -4139,6 +4139,9 @@ Also see `denote-link-return-links'."
              (id (denote-retrieve-filename-identifier-with-error 
current-file)))
     (delete current-file (denote--retrieve-files-in-xrefs id))))
 
+;; TODO 2024-09-04: Instead of using `denote-link-return-backlinks' we
+;; should have a function that does not try to find all backlinks but
+;; simply exits as soon as it finds one.
 (defun denote--file-has-backlinks-p (file)
   "Return non-nil if FILE has backlinks."
   (not (zerop (length (denote-link-return-backlinks file)))))



reply via email to

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