From cc6e22dd309be75d462255a7fce0449d92beb188 Mon Sep 17 00:00:00 2001 From: Ahmed Shariff Date: Sun, 4 Jul 2021 23:31:31 -0500 Subject: [PATCH] Allow reading buffer names for buffers-or-names --- org-ql.el | 1 + 1 file changed, 1 insertion(+) diff --git a/org-ql.el b/org-ql.el index 193592a..602cb19 100644 --- a/org-ql.el +++ b/org-ql.el @@ -367,6 +367,7 @@ returns nil or non-nil." ;; It feels unintuitive that `find-file-noselect' returns ;; a buffer if the filename doesn't exist. (find-file-noselect it)) + (get-buffer it) (user-error "Can't open file: %s" it))))) ;; Ignore special/hidden buffers. (--remove (string-prefix-p " " (buffer-name it)))))