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

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

[elpa] externals/denote 7074b25869 289/355: Buttonize all links when ins


From: ELPA Syncer
Subject: [elpa] externals/denote 7074b25869 289/355: Buttonize all links when inserted in bulk
Date: Sun, 26 Jun 2022 23:58:33 -0400 (EDT)

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

    Buttonize all links when inserted in bulk
---
 denote-link.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/denote-link.el b/denote-link.el
index a2cacfe29f..da7262a012 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -375,7 +375,9 @@ inserts links with just the identifier."
   (let* ((default-directory (denote-directory))
          (ext (denote-link--extension-format-or-id id-only)))
     (if-let ((files (denote--directory-files-matching-regexp regexp)))
-        (insert (denote-link--prepare-links files ext))
+        (let ((beg (point)))
+          (insert (denote-link--prepare-links files ext))
+          (denote-link-buttonize-buffer beg (point)))
       (user-error "No links matching `%s'" regexp))))
 
 (defalias 'denote-link-insert-links-matching-regexp (symbol-function 
'denote-link-add-links))



reply via email to

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