changeset 74212:b90d5a3a62fb

(speedbar-timer-fn): Revert to old behaviour when not in GUD mode.
author Nick Roberts <nickrob@snap.net.nz>
date Sun, 26 Nov 2006 23:08:36 +0000
parents b5b237361cae
children 085dfebf66c5
files lisp/speedbar.el
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/speedbar.el	Sun Nov 26 23:08:04 2006 +0000
+++ b/lisp/speedbar.el	Sun Nov 26 23:08:36 2006 +0000
@@ -2681,7 +2681,15 @@
 			     "Updating speedbar to special mode: %s...done"
 			     major-mode)
 			    (speedbar-message nil))))
-		    (speedbar-update-localized-contents))
+
+ 		  ;; Update all the contents if directories change!
+ 		  (unless (and (or (member major-mode speedbar-ignored-modes)
+				   (eq af (speedbar-current-frame))
+				   (not (buffer-file-name)))
+			       ;; Always update for GUD.
+			       (not (string-equal "GUD"
+				     speedbar-initial-expansion-list-name)))
+		    (speedbar-update-localized-contents)))
 		(select-frame af))
 	    ;; Now run stealthy updates of time-consuming items
 	    (speedbar-stealthy-updates)))))