summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/buff-menu.el3
-rw-r--r--test/lisp/buff-menu-tests.el1
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index e2aa2da0388..dcf5b0f3888 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -671,7 +671,8 @@ means list those buffers and no others."
(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
diff --git a/test/lisp/buff-menu-tests.el b/test/lisp/buff-menu-tests.el
index c55dc8128bc..133a4f67a9c 100644
--- a/test/lisp/buff-menu-tests.el
+++ b/test/lisp/buff-menu-tests.el
@@ -27,7 +27,6 @@
(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