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

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

[elpa] externals/denote 5f6501a40c 05/19: Make denote-link--prepare-link


From: ELPA Syncer
Subject: [elpa] externals/denote 5f6501a40c 05/19: Make denote-link--prepare-links account for files with signature
Date: Sat, 2 Dec 2023 03:57:52 -0500 (EST)

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

    Make denote-link--prepare-links account for files with signature
    
    This affects the command 'denote-add-links' as well as the
    'denote-links', 'denote-backlinks', 'denote-files' Org dynamic blocks.
    The latter three can be inserted at point with these commands:
    
    - 'denote-org-dblock-insert-links'
    - 'denote-org-dblock-insert-backlinks'
    - 'denote-org-dblock-insert-files'
---
 denote.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index a797935cd0..c19f1765c9 100644
--- a/denote.el
+++ b/denote.el
@@ -3537,7 +3537,10 @@ Otherwise sort lines while accounting for 
`denote-link-add-links-sort'."
          (denote-format-link
           file
           (denote-link--file-type-format current-file-type id-only)
-          (denote--link-get-description file (denote-filetype-heuristics 
file))))))
+          (let ((type (denote-filetype-heuristics file)))
+            (if (denote-file-has-signature-p file)
+                (denote--link-get-description-with-signature file type)
+              (denote--link-get-description file type)))))))
           files)
     (unless no-sort
       (sort-lines denote-link-add-links-sort (point-min) (point-max)))



reply via email to

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