From 7479034cda1b74dce82631ef4f5f23e2013f6d28 Mon Sep 17 00:00:00 2001 From: Chris Barrett Date: Mon, 29 Aug 2022 16:26:12 +1200 Subject: [PATCH] Change optional positional argument to keyword argument --- lisp/org-roam-review.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-roam-review.el b/lisp/org-roam-review.el index ffff402..efdba98 100644 --- a/lisp/org-roam-review.el +++ b/lisp/org-roam-review.el @@ -329,7 +329,7 @@ When called with a `C-u' prefix arg, clear the current filter." (replace-regexp-in-string (rx bol) (make-string (* depth org-roam-review-indent-width) 32) str)) -(cl-defun org-roam-review-insert-preview (node &optional (depth 0)) +(cl-defun org-roam-review-insert-preview (node &key (depth 0)) (magit-insert-section section (org-roam-preview-section) (let* ((start (org-roam-node-point node)) (file (org-roam-node-file node))