]> git.eshelyaron.com Git - emacs.git/commitdiff
(speedbar-timer-fn): Revert to old behaviour when not
authorNick Roberts <nickrob@snap.net.nz>
Sun, 26 Nov 2006 23:08:36 +0000 (23:08 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sun, 26 Nov 2006 23:08:36 +0000 (23:08 +0000)
in GUD mode.

lisp/speedbar.el

index aa09e0188030477994f5b68f459c18f6910dafd2..01357cb380a2d2a217a233fcbc2cfa34b6f98ab9 100644 (file)
@@ -2681,7 +2681,15 @@ Also resets scanner functions."
                             "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)))))