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

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

[elpa] externals/denote bcbd52a784 200/355: Use format specifiers for de


From: ELPA Syncer
Subject: [elpa] externals/denote bcbd52a784 200/355: Use format specifiers for denote-link-add-links
Date: Sun, 26 Jun 2022 23:58:23 -0400 (EDT)

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

    Use format specifiers for denote-link-add-links
---
 denote-link.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/denote-link.el b/denote-link.el
index ecde257590..c11b16f79a 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -245,13 +245,17 @@ default, it will show up below the current window."
 (defvar denote-link--links-to-files nil
   "String of `denote-link-add-links-matching-keyword'.")
 
+(defvar denote-link--prepare-links-format "- %s\n"
+  "Format specifiers for `denote-link-add-links'.")
+
 (defun denote-link--prepare-links (files ext)
   "Prepare links to FILES using format of EXT."
   (setq denote-link--links-to-files
         (with-temp-buffer
           (mapc (lambda (f)
-                  (insert (concat "- " (denote-link--format-link f ext)))
-                  (newline))
+                  (insert
+                   (format denote-link--prepare-links-format
+                           (denote-link--format-link f ext))))
                 files)
           (let ((min (point-min))
                 (max (point-max)))



reply via email to

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