aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2006-11-26 23:08:36 +0000
committerNick Roberts2006-11-26 23:08:36 +0000
commitf2c246e35cca59c98add4a51e5abd23fdc7209c9 (patch)
tree39760637ae7c001bdc7492861ce97a205eb33104
parent0a43e4271977b4f43b3e8dc100cb13e6ecfa6ae1 (diff)
downloademacs-f2c246e35cca59c98add4a51e5abd23fdc7209c9.tar.gz
emacs-f2c246e35cca59c98add4a51e5abd23fdc7209c9.zip
(speedbar-timer-fn): Revert to old behaviour when not
in GUD mode.
-rw-r--r--lisp/speedbar.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index aa09e018803..01357cb380a 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -2681,7 +2681,15 @@ Also resets scanner functions."
2681 "Updating speedbar to special mode: %s...done" 2681 "Updating speedbar to special mode: %s...done"
2682 major-mode) 2682 major-mode)
2683 (speedbar-message nil)))) 2683 (speedbar-message nil))))
2684 (speedbar-update-localized-contents)) 2684
2685 ;; Update all the contents if directories change!
2686 (unless (and (or (member major-mode speedbar-ignored-modes)
2687 (eq af (speedbar-current-frame))
2688 (not (buffer-file-name)))
2689 ;; Always update for GUD.
2690 (not (string-equal "GUD"
2691 speedbar-initial-expansion-list-name)))
2692 (speedbar-update-localized-contents)))
2685 (select-frame af)) 2693 (select-frame af))
2686 ;; Now run stealthy updates of time-consuming items 2694 ;; Now run stealthy updates of time-consuming items
2687 (speedbar-stealthy-updates))))) 2695 (speedbar-stealthy-updates)))))