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>.
This commit is contained in:
Protesilaos Stavrou 2025-03-01 08:01:41 +02:00
parent 212a1b3c17
commit 20005e666a
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -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))