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

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

[elpa] externals/denote a3f0ecce65: Add autoload cookies for org link fu


From: ELPA Syncer
Subject: [elpa] externals/denote a3f0ecce65: Add autoload cookies for org link functions
Date: Thu, 6 Oct 2022 12:57:29 -0400 (EDT)

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

    Add autoload cookies for org link functions
    
    This is just to be sure that they are available if Org encounters a
    'denote:' link (e.g. in its agenda files) before the 'require' call to
    denote.el.
    
    It may be what causes the problem reported by Sven Seebeck regarding
    an error with 'denote-link-ol-store':
    
    * 
<https://lists.sr.ht/~protesilaos/denote/%3C87r0zovwix.fsf%40svenseebeck.me%3E>
    * 
<https://lists.sr.ht/~protesilaos/denote/%3C87fsg4kjuy.fsf%40protesilaos.com%3E>
---
 denote.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/denote.el b/denote.el
index 537622c4fa..ac2d6534ef 100644
--- a/denote.el
+++ b/denote.el
@@ -2649,6 +2649,7 @@ and the identifier."
       (concat path "::" search))
      (path))))
 
+;;;###autoload
 (defun denote-link-ol-follow (link)
   "Find file of type `denote:' matching LINK.
 LINK is the identifier of the note, optionally followed by a
@@ -2661,6 +2662,7 @@ file."
    (denote-link--ol-resolve-link-to-target link)
    nil))
 
+;;;###autoload
 (defun denote-link-ol-complete ()
   "Like `denote-link' but for Org integration.
 This lets the user complete a link through the `org-insert-link'
@@ -2672,6 +2674,7 @@ interface by first selecting the `denote:' hyperlink 
type."
 (declare-function org-link-store-props "ol.el" (&rest plist))
 (defvar org-store-link-plist)
 
+;;;###autoload
 (defun denote-link-ol-store ()
   "Handler for `org-store-link' adding support for denote: links."
   (when-let* ((file (buffer-file-name))
@@ -2685,6 +2688,7 @@ interface by first selecting the `denote:' hyperlink 
type."
      :link (concat "denote:" file-id))
   org-store-link-plist))
 
+;;;###autoload
 (defun denote-link-ol-export (link description format)
   "Export a `denote:' link from Org files.
 The LINK, DESCRIPTION, and FORMAT are handled by the export



reply via email to

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