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

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

[elpa] externals/denote ad4532e2fc 09/32: Make links to Org headings onl


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

branch: externals/denote
commit ad4532e2fc12d4226c32799aaade9851577912a2
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 68dd4cb9aa..ea3e27fcd8 100644
--- a/denote.el
+++ b/denote.el
@@ -4024,8 +4024,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]