[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master af96803: Fix Bug#24962
From: |
Tino Calancha |
Subject: |
[Emacs-diffs] master af96803: Fix Bug#24962 |
Date: |
Thu, 8 Dec 2016 04:51:25 +0000 (UTC) |
branch: master
commit af96803459cb777fa4528e02bd0f60c1d502638f
Author: Tino Calancha <address@hidden>
Commit: Tino Calancha <address@hidden>
Fix Bug#24962
* 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.
---
lisp/buff-menu.el | 3 ++-
test/lisp/buff-menu-tests.el | 1 -
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index e2aa2da..dcf5b0f 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 c55dc81..133a4f6 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master af96803: Fix Bug#24962,
Tino Calancha <=