Function: speedbar-refresh

speedbar-refresh is an interactive and byte-compiled function defined in speedbar.el.gz.

Signature

(speedbar-refresh &optional ARG)

Documentation

Refresh the current speedbar display, disposing of any cached data.

Argument ARG represents to force a refresh past any caches that may exist.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
;;; Speedbar file activity (aka creeping featurism)
;;
(defun speedbar-refresh (&optional arg)
  "Refresh the current speedbar display, disposing of any cached data.
Argument ARG represents to force a refresh past any caches that may exist."
  (interactive "P")
  (let ((dl speedbar-shown-directories)
	(dframe-power-click arg)
	deactivate-mark)
    ;; We need to hack something so this works in detached frames.
    (dolist (d dl)
      (setq speedbar-directory-contents-alist
            (delq (assoc d speedbar-directory-contents-alist)
                  speedbar-directory-contents-alist)))
    (if (<= 1 speedbar-verbosity-level)
	(dframe-message "Refreshing speedbar..."))
    (speedbar-update-contents)
    (speedbar-stealthy-updates)
    ;; Reset the timer in case it got really hosed for some reason...
    (speedbar-set-timer dframe-update-speed)
    (if (<= 1 speedbar-verbosity-level)
	(dframe-message "Refreshing speedbar...done"))))