branch: externals/denote
commit 20005e666a7e71c284cd6f1adac6a23a8d101059
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Make denote-link-ol-store accept any arguments passed to it
This is due to how org-store-link may use the function internally.
Thanks to kalisduli for reporting the problem in issue 552:
<https://github.com/protesilaos/denote/issues/552>.
---
denote.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/denote.el b/denote.el
index f615235497..1728425712 100644
--- a/denote.el
+++ b/denote.el
@@ -5409,7 +5409,7 @@ create a new one."
(format "%s::%s" file-text heading-text))
;;;###autoload
-(defun denote-link-ol-store ()
+(defun denote-link-ol-store (&rest _)
"Handler for `org-store-link' adding support for denote: links.
Also see the user option `denote-org-store-link-to-heading'."
(when-let* ((file (buffer-file-name))