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

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

[elpa] externals/denote 3319970d08 02/32: Make links to Org headings onl


From: ELPA Syncer
Subject: [elpa] externals/denote 3319970d08 02/32: Make links to Org headings only work for Org
Date: Sat, 20 Jan 2024 00:57:40 -0500 (EST)

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

    Make links to Org headings only work for Org
    
    We do not want to create a PROPERTIES drawer in txt files, for example.
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index b97daf10ea..8da25947cb 100644
--- a/denote.el
+++ b/denote.el
@@ -3959,8 +3959,8 @@ If the entry already has a CUSTOM_ID, return it as-is."
     (org-link-store-props
      :type "denote"
      :description file-title
-     :link (if denote-link-to-org-headings
                (format "denote:%s::#%s" file-id 
(denote--link-ol-id-get-create))
+     :link (if (and denote-link-to-org-headings (derived-mode-p 'org-mode))
              (concat "denote:" file-id)))
     org-store-link-plist))
 



reply via email to

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