From a8a36a420bfb4e19d76345f98bc33d8cfb2a03fe Mon Sep 17 00:00:00 2001 From: Linus Arver Date: Sun, 29 Aug 2021 16:30:04 -0700 Subject: [PATCH] (fix)org-roam-node-visit: pass correctly optional `force` parameter (#1821) This function ignored the `force' optional argument because it always quoted it, resulting in a non-nil value every time. This makes the suggested code snippet in https://github.com/org-roam/org-roam/issues/597#issuecomment-907743125 work as expected (not resetting point to the beginning of the "Index" buffer on every invocation). --- org-roam-node.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam-node.el b/org-roam-node.el index fbac915..08ffceb 100644 --- a/org-roam-node.el +++ b/org-roam-node.el @@ -393,7 +393,7 @@ If NODE is already visited, this won't automatically move the point to the beginning of the NODE, unless FORCE is non-nil. In interactive calls FORCE always set to t." (interactive (list (org-roam-node-at-point t) current-prefix-arg t)) - (let ((buf (org-roam-node-find-noselect node 'force)) + (let ((buf (org-roam-node-find-noselect node force)) (display-buffer-fn (if other-window #'switch-to-buffer-other-window #'pop-to-buffer-same-window)))