summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-10-30 10:44:17 +0000
committerEli Zaretskii <eliz@gnu.org>2001-10-30 10:44:17 +0000
commitae8301597037c176108f5eb40d783593de427870 (patch)
tree8531c1e065a153730708c784becdfaf2190d909a
parentde7396bb05e0361d9684fcf0888b3bfcd8e877a3 (diff)
downloademacs-ae8301597037c176108f5eb40d783593de427870.tar.gz
(list-buffers-noselect): If the buffer's name
starts with a blank, but it visits a file, do show it (for files whose names start with a blank).
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/buff-menu.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 17a24e2fa1b..2f6167feee5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * buff-menu.el (list-buffers-noselect): If the buffer's name
+ starts with a blank, but it visits a file, do show it (for files
+ whose names start with a blank).
+
2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
* textmodes/fill.el (sentence-end-double-space)
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index bc995f0303f..a5c43d1c60f 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -515,7 +515,7 @@ The R column contains a % for buffers that are read-only."
(setq this-buffer-directory list-buffers-directory))))
(cond
;; Don't mention internal buffers.
- ((string= (substring name 0 1) " "))
+ ((and (string= (substring name 0 1) " ") (null file)))
;; Maybe don't mention buffers without files.
((and files-only (not file)))
((string= name "*Buffer List*"))