Function: speedbar-update-localized-contents
speedbar-update-localized-contents is a byte-compiled function defined
in speedbar.el.gz.
Signature
(speedbar-update-localized-contents)
Documentation
Update the contents of the speedbar buffer for the current situation.
Source Code
;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-update-localized-contents ()
"Update the contents of the speedbar buffer for the current situation."
;; Due to the historical growth of speedbar, we need to do something
;; special for "files" mode. Too bad.
(let ((name speedbar-initial-expansion-list-name)
(funclst (speedbar-initial-expansion-list))
)
(if (string= name "files")
;; Do all the files type work. It still goes through the
;; expansion list stuff. :(
(if (or (member (expand-file-name default-directory)
speedbar-shown-directories)
(and speedbar-ignored-directory-regexp
(string-match
speedbar-ignored-directory-regexp
(expand-file-name default-directory))))
nil
(if (<= 1 speedbar-verbosity-level)
(dframe-message "Updating speedbar to: %s..."
default-directory))
(speedbar-update-directory-contents)
(if (<= 1 speedbar-verbosity-level)
(progn
(dframe-message "Updating speedbar to: %s...done"
default-directory)
(dframe-message nil))))
;; Else, we can do a short cut. No text cache.
(let ((cbd (expand-file-name default-directory)))
(set-buffer speedbar-buffer)
(speedbar-with-writable
(let* ((window (get-buffer-window speedbar-buffer 0))
(p (window-point window))
(start (window-start window)))
(erase-buffer)
(dolist (func funclst)
(setq default-directory cbd)
(funcall func cbd 0))
(speedbar-reconfigure-keymaps)
(set-window-point window p)
(set-window-start window start)))))))