]> git.eshelyaron.com Git - emacs.git/commitdiff
(list-buffers-noselect): If the buffer's name
authorEli Zaretskii <eliz@gnu.org>
Tue, 30 Oct 2001 10:44:17 +0000 (10:44 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 30 Oct 2001 10:44:17 +0000 (10:44 +0000)
starts with a blank, but it visits a file, do show it (for files
whose names start with a blank).

lisp/ChangeLog
lisp/buff-menu.el

index 17a24e2fa1be36d83929d88cab6a145a77c4e7fe..2f6167feee53e9327afcc6bb8e5af9d635dcb656 100644 (file)
@@ -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)
index bc995f0303fae5d874f439d782bf13b32f4f22f9..a5c43d1c60f414aada1f32b8733fe228c40c9aba 100644 (file)
@@ -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*"))