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

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

[elpa] externals/denote 3e6bf5be6c 21/32: Use denote-link-ol-get-heading


From: ELPA Syncer
Subject: [elpa] externals/denote 3e6bf5be6c 21/32: Use denote-link-ol-get-heading instead of the underlying Org function
Date: Sat, 20 Jan 2024 00:57:42 -0500 (EST)

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

    Use denote-link-ol-get-heading instead of the underlying Org function
    
    This will help us with consistency.
---
 denote-org.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/denote-org.el b/denote-org.el
index 37ea542f7c..608dad3766 100644
--- a/denote-org.el
+++ b/denote-org.el
@@ -72,8 +72,7 @@ the current file."
     (save-excursion
       (goto-char (point-min))
       (forward-line line)
-      (cons (org-get-heading :no-tags :no-todo :no-priority :no-comment)
-            (denote-link-ol-get-id)))))
+      (cons (denote-link-ol-get-heading) (denote-link-ol-get-id)))))
 
 (defun denote-org-format-link-with-heading (file heading-id description)
   "Prepare link to FILE with HEADING-ID using DESCRIPTION.



reply via email to

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