Allow reading buffer names for buffers-or-names

This commit is contained in:
Ahmed Shariff 2021-07-04 23:31:31 -05:00
parent 89b84768ad
commit cc6e22dd30

View file

@ -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)))))