speedbar-before-visiting-file-hook

speedbar-before-visiting-file-hook is a variable defined in `speedbar.el'.
Its value is
(push-mark)

  • This variable may be risky if used as a file-local variable.

Documentation:
Hooks run before speedbar visits a file in the selected frame.
The default buffer is the buffer in the selected window in the attached frame.

You can customize this variable.