Function: speedbar-directory-buttons-follow
speedbar-directory-buttons-follow is a byte-compiled function defined
in speedbar.el.gz.
Signature
(speedbar-directory-buttons-follow TEXT TOKEN INDENT)
Documentation
Speedbar click handler for default directory buttons.
TEXT is the button clicked on. TOKEN is the directory to follow. INDENT is the current indentation level and is unused.
Source Code
;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-directory-buttons-follow (_text token _indent)
"Speedbar click handler for default directory buttons.
TEXT is the button clicked on. TOKEN is the directory to follow.
INDENT is the current indentation level and is unused."
(setq default-directory (file-name-as-directory token))
;; Because we leave speedbar as the current buffer,
;; update contents will change directory without
;; having to touch the attached frame.
(speedbar-update-contents)
(speedbar-set-timer dframe-update-speed))