From 0fe751a9434b32757f42890eae360e703f17a5a4 Mon Sep 17 00:00:00 2001 From: Chris Barrett Date: Sun, 6 Aug 2023 18:37:20 +1200 Subject: [PATCH] Avoid autoloading org-roam-node-slipbox method directly --- lisp/org-roam-slipbox.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/org-roam-slipbox.el b/lisp/org-roam-slipbox.el index ad1c46d..544cc9d 100644 --- a/lisp/org-roam-slipbox.el +++ b/lisp/org-roam-slipbox.el @@ -122,7 +122,6 @@ tag applied." (org-roam-slipbox--sanitize-tag (file-name-nondirectory dir)))) (error org-roam-slipbox-default))) -;;;###autoload (cl-defmethod org-roam-node-slipbox ((node org-roam-node)) "Return the slipbox a NODE belongs to. @@ -134,6 +133,11 @@ See also: `org-roam-slipbox-default'." (expand-file-name ".placeholder") (org-roam-node-file node)))) +;; NOTE: Cannot use autoload magic comment directly on a defmethod. + +;;;###autoload +(autoload 'org-roam-node-slipbox "org-roam-slipbox") + (defun org-roam-slipbox--rename-file-without-git (from to) "Move file FROM to TO, updating the file's buffer if open.