* lisp/buff-menu.el (list-buffers--refresh):
List buffers with name starting with " " if they visit a file.
* test/lisp/buff-menu-tests.el (buff-menu-24962):
Update test result as pass.
(file buffer-file-name))
(when (and (buffer-live-p buffer)
(or buffer-list
- (and (not (string= (substring name 0 1) " "))
+ (and (or (not (string= (substring name 0 1) " "))
+ file)
(not (eq buffer buffer-menu-buffer))
(or file show-non-file))))
(push (list buffer
(ert-deftest buff-menu-24962 ()
"Test for http://debbugs.gnu.org/24962 ."
- :expected-result :failed
(let ((file (expand-file-name "foo" temporary-file-directory))
buf)
(unwind-protect