speedbar-scanner-reset-hook is a variable defined in `speedbar.el'.
Its value is
nil
This variable may be risky if used as a file-local variable.
Documentation:
Hook called whenever generic scanners are reset.
Set this to implement your own scanning / rescan safe functions with
state data.
You can customize this variable.