Function: speedbar-update-special-contents
speedbar-update-special-contents is a byte-compiled function defined
in speedbar.el.gz.
Signature
(speedbar-update-special-contents)
Documentation
Use the mode-specific variable to fill in the speedbar buffer.
This should only be used by modes classified as special.
Source Code
;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-update-special-contents ()
"Use the mode-specific variable to fill in the speedbar buffer.
This should only be used by modes classified as special."
(let ((funclst speedbar-special-mode-expansion-list)
(specialbuff (current-buffer)))
(setq speedbar-desired-buffer specialbuff)
(with-current-buffer speedbar-buffer
;; If we are leaving a directory, cache it.
(if (not speedbar-shown-directories)
;; Do nothing
nil
;; Clean up directory maintenance stuff
(speedbar-clear-current-file)
(setq speedbar-full-text-cache
(cons speedbar-shown-directories (buffer-string))
speedbar-shown-directories nil))
;; Now fill in the buffer with our newly found specialized list.
(speedbar-with-writable
(dolist (func funclst)
;; We do not erase the buffer because these functions may
;; decide NOT to update themselves.
(funcall func specialbuff)))))
(speedbar-reconfigure-keymaps))