(fix): Remove old definition of org-roam-graph--open (#498)

Fixes #496
This commit is contained in:
N V 2020-04-19 14:24:18 -04:00 committed by GitHub
parent 89b941a207
commit 228af5b6be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -235,12 +235,6 @@ If MAX-DISTANCE is non-nil, limit nodes to MAX-DISTANCE steps."
:where (in file [,@files])]))
(org-roam-graph--build query)))
(defun org-roam-graph--open (file)
"Open FILE using `org-roam-graph-viewer', with `view-file' as a fallback."
(if (and org-roam-graph-viewer (executable-find org-roam-graph-viewer))
(call-process org-roam-graph-viewer nil 0 nil file)
(view-file file)))
;;;; Commands
;;;###autoload
(defun org-roam-graph (&optional arg file node-query)