branch: externals/org-remark
commit c506e6101751bd55982bf1e835ff291112fc3fa8
Author: Noboru Ota <m...@nobiot.com>
Commit: Noboru Ota <m...@nobiot.com>

    fix(line): `org-remark-mark-line` does not autoload
    
    The comment is created via a call to `org-remark-create` macro. The call
    is done within the library, so we would need to wait for it to be
    loaded. This is too late, so adding a dummy `defun` with the autoload
    cookie to register it. The actual implementation is added when the
    library is later loaded (likely together with `org-remark` itself
    as it is likely to be deferred).
---
 org-remark-line.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/org-remark-line.el b/org-remark-line.el
index ff57efa8fe..e30a44041c 100644
--- a/org-remark-line.el
+++ b/org-remark-line.el
@@ -151,6 +151,13 @@ in cons cell (or nil) before function
       (setq org-remark-line-margins-set-p nil))))
 
 ;; Default line-highlighter pen
+
+;;;###autoload
+(defun org-remark-mark-line (&args _)
+  "Dummy function definition to let autoload work.
+The actual implementation is added when this library is loaded
+and macro `org-remark-create' creates the actual function.")
+
 (org-remark-create "line"
                    `org-remark-line-highlighter
                    `(org-remark-type line))

Reply via email to