fix(org): make last arg of +org--follow-search-string-a optional

To accommodate the optional second argument of org-roam-id-open in
org-roam-v1.

Ref: 946a879a4a/org-roam.el (L1140)
This commit is contained in:
NightMachinery 2022-06-18 19:55:22 +04:30 committed by GitHub
parent 1ed1064ce1
commit ff7ae66372
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -552,7 +552,7 @@ relative to `org-directory', unless it is an absolute path."
(+org-define-basic-link "doom-modules" 'doom-modules-dir)
;; TODO PR this upstream
(defadvice! +org--follow-search-string-a (fn link arg)
(defadvice! +org--follow-search-string-a (fn link &optional arg)
"Support ::SEARCH syntax for id: links."
:around #'org-id-open
:around #'org-roam-id-open