Buffer Tab does not redraws when switching to buffer with leading space in
name. 
test case: (switch-to-buffer " TMP")
I expected the buffers tab to display buffers in Fundamantal mode including "
TMP", but the buffer tab remained the same.
I agree that usually the buffers tab should not display buffers with names with
leading spaces. Nevertheless, if a user explicitly switches to a buffer with
such name then the buffers tab should respect user and show the name of the
current buffer.
Nick.
The patch introduces needed behaviour:
----------------------------------------------------------------------
diff -u -r1.1.2.60 gutter-items.el
--- gutter-items.el	2001/03/15 16:28:42	1.1.2.60
+++ gutter-items.el	2001/04/10 13:59:49
@@ -249,7 +249,12 @@
     ;; context buffer before they get run.
     (let* ((buffers (delete-if 
 		     buffers-tab-omit-function (buffer-list frame)))
-	   (first-buf (car buffers)))
+           first-buf)
+      (if (eq (minibuffer-window frame) (selected-window))
+          (setq first-buf (car buffers))
+        (setq first-buf (window-buffer (selected-window)))
+        (unless (memq first-buf buffers)
+          (push first-buf buffers)))
       ;; maybe force the selected window
       (when (and force-selection
 		 (not in-deletion)
    
    
    
 
                    
                    
                        
                        Show replies by date