aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric M. Ludlam1998-08-04 13:58:39 +0000
committerEric M. Ludlam1998-08-04 13:58:39 +0000
commit61d7e1dc5bf3b2686156f8b35609a8105f115f8f (patch)
tree9a2bc864a92fd6a96170952d026e5296a134b052
parentb73820b00cead68f313028a4d1f957de245e1cc9 (diff)
downloademacs-61d7e1dc5bf3b2686156f8b35609a8105f115f8f.tar.gz
emacs-61d7e1dc5bf3b2686156f8b35609a8105f115f8f.zip
Updated refresh messages to clear themselves.
-rw-r--r--lisp/speedbar.el25
1 files changed, 14 insertions, 11 deletions
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index d1307ec4c0c..d2d2865bde9 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -5,7 +5,7 @@
5;; Author: Eric M. Ludlam <zappo@gnu.org> 5;; Author: Eric M. Ludlam <zappo@gnu.org>
6;; Version: 0.7.1 6;; Version: 0.7.1
7;; Keywords: file, tags, tools 7;; Keywords: file, tags, tools
8;; X-RCS: $Id: speedbar.el,v 1.4 1998/07/10 16:48:06 kwzh Exp zappo $ 8;; X-RCS: $Id: speedbar.el,v 1.5 1998/08/03 17:47:39 zappo Exp zappo $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -1526,17 +1526,14 @@ Assumes that the current buffer is the speedbar buffer"
1526 (while dl 1526 (while dl
1527 (adelete 'speedbar-directory-contents-alist (car dl)) 1527 (adelete 'speedbar-directory-contents-alist (car dl))
1528 (setq dl (cdr dl))) 1528 (setq dl (cdr dl)))
1529 (if (<= 1 speedbar-verbosity-level) (message "Refreshing speedbar...")) 1529 (if (<= 1 speedbar-verbosity-level)
1530 (message "Refreshing speedbar..."))
1530 (speedbar-update-contents) 1531 (speedbar-update-contents)
1531 (speedbar-stealthy-updates) 1532 (speedbar-stealthy-updates)
1532 ;; Reset the timer in case it got really hosed for some reason... 1533 ;; Reset the timer in case it got really hosed for some reason...
1533 (speedbar-set-timer speedbar-update-speed) 1534 (speedbar-set-timer speedbar-update-speed)
1534 (if (<= 1 speedbar-verbosity-level) 1535 (if (<= 1 speedbar-verbosity-level)
1535 (progn 1536 (message "Refreshing speedbar...done"))
1536 (message "Refreshing speedbar...done")
1537 (sit-for 0)
1538 (message nil)))
1539 ;; Protect the highlighted region.
1540 (if (boundp 'deactivate-mark) (setq deactivate-mark dm)))) 1537 (if (boundp 'deactivate-mark) (setq deactivate-mark dm))))
1541 1538
1542(defun speedbar-item-load () 1539(defun speedbar-item-load ()
@@ -2551,8 +2548,11 @@ This should only be used by modes classified as special."
2551 major-mode)) 2548 major-mode))
2552 (speedbar-update-special-contents) 2549 (speedbar-update-special-contents)
2553 (if (<= 2 speedbar-verbosity-level) 2550 (if (<= 2 speedbar-verbosity-level)
2554 (message "Updating speedbar to special mode: %s...done" 2551 (progn
2555 major-mode))) 2552 (message "Updating speedbar to special mode: %s...done"
2553 major-mode)
2554 (sit-for 1)
2555 (message nil))))
2556 ;; Update all the contents if directories change! 2556 ;; Update all the contents if directories change!
2557 (if (or (member (expand-file-name default-directory) 2557 (if (or (member (expand-file-name default-directory)
2558 speedbar-shown-directories) 2558 speedbar-shown-directories)
@@ -2569,8 +2569,11 @@ This should only be used by modes classified as special."
2569 default-directory)) 2569 default-directory))
2570 (speedbar-update-directory-contents) 2570 (speedbar-update-directory-contents)
2571 (if (<= 1 speedbar-verbosity-level) 2571 (if (<= 1 speedbar-verbosity-level)
2572 (message "Updating speedbar to: %s...done" 2572 (progn
2573 default-directory)))) 2573 (message "Updating speedbar to: %s...done"
2574 default-directory)
2575 (sit-for 1)
2576 (message nil)))))
2574 (select-frame af)) 2577 (select-frame af))
2575 ;; Now run stealthy updates of time-consuming items 2578 ;; Now run stealthy updates of time-consuming items
2576 (speedbar-stealthy-updates))) 2579 (speedbar-stealthy-updates)))