From: Nick Roberts Date: Sun, 26 Nov 2006 23:08:36 +0000 (+0000) Subject: (speedbar-timer-fn): Revert to old behaviour when not X-Git-Tag: emacs-pretest-22.0.92~490 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f2c246e35cca59c98add4a51e5abd23fdc7209c9;p=emacs.git (speedbar-timer-fn): Revert to old behaviour when not in GUD mode. --- 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)))))