Allow reading buffer names for buffers-or-names
This commit is contained in:
parent
89b84768ad
commit
cc6e22dd30
1 changed files with 1 additions and 0 deletions
|
|
@ -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)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue