From f2c246e35cca59c98add4a51e5abd23fdc7209c9 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Sun, 26 Nov 2006 23:08:36 +0000 Subject: [PATCH] (speedbar-timer-fn): Revert to old behaviour when not in GUD mode. --- lisp/speedbar.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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." "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))))) -- 2.11.4.GIT