From 2f30dfd451554b643255456a12e09e63def6ab19 Mon Sep 17 00:00:00 2001 From: p4v4n Date: Wed, 9 Feb 2022 22:25:18 +0530 Subject: Relace org-roam-node-find-noselect --- org-roam-ui.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'org-roam-ui.el') diff --git a/org-roam-ui.el b/org-roam-ui.el index e1431ff..c56ca6f 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -229,10 +229,10 @@ Takes _WS and FRAME as arguments." (defun org-roam-ui--on-msg-open-node (data) "Open a node when receiving DATA from the websocket." - (let* ((node (org-roam-node-from-id (alist-get'id data))) - (pos (org-roam-node-point node)) - (buf (org-roam-node-find-noselect node)) - (id (alist-get 'id data))) + (let* ((id (alist-get 'id data)) + (node (org-roam-node-from-id id)) + (pos (org-roam-node-point node)) + (buf (find-file-noselect (org-roam-node-file node)))) (run-hook-with-args 'org-roam-ui-before-open-node-functions id) (unless (window-live-p org-roam-ui--window) (if-let ((windows (window-list)) -- cgit v1.2.3