diff options
author | p4v4n <[email protected]> | 2022-02-09 22:25:18 +0530 |
---|---|---|
committer | p4v4n <[email protected]> | 2022-02-09 22:25:18 +0530 |
commit | 2f30dfd451554b643255456a12e09e63def6ab19 (patch) | |
tree | e3048293d328e8de3f553e928ff6f964b64913ef /org-roam-ui.el | |
parent | 309fe3c58c7081de4e2c9c64f7b40ea291926048 (diff) |
Relace org-roam-node-find-noselect
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r-- | org-roam-ui.el | 8 |
1 files changed, 4 insertions, 4 deletions
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)) |