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

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

[elpa] externals/denote 1ba3ccc7d0 291/355: Add missing conditionality f


From: ELPA Syncer
Subject: [elpa] externals/denote 1ba3ccc7d0 291/355: Add missing conditionality from commit 7074b25
Date: Sun, 26 Jun 2022 23:58:33 -0400 (EDT)

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

    Add missing conditionality from commit 7074b25
    
    We do not need to buttonize links in Org.  They work there already.
---
 denote-link.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/denote-link.el b/denote-link.el
index f23ccc9b34..d830561aca 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -378,7 +378,8 @@ inserts links with just the identifier."
     (if-let ((files (denote--directory-files-matching-regexp regexp)))
         (let ((beg (point)))
           (insert (denote-link--prepare-links files ext))
-          (denote-link-buttonize-buffer beg (point)))
+          (unless (derived-mode-p 'org-mode)
+            (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]