At 03:36 PM 12/14/99 +0000, Bruce Ashton wrote:
>I wondr if someone can help me ...
> I'm running the 2.1.5 JDE with Emacs 20.5.1 on Windows NT. I find that
>if I edit a file, the tags never update for the speedbar class/method
>browser. I've tried manually running the update function on the
>speedbar, and rstarting the speedbar but at the moment the only way to
>update it seems to be to exit and restart emacs. I'm not certain this
>was always a problem, I've only just noticed it, so possibly it's due to
>some recent modification to my .emacs file (i've made several over the
>past week).
> I've attached my .emacs file in case it is. Has anyone run into this
>problem before?
>
Hi Bruce,
Clicking a speedbar node with mouse button 2 loads a file into a buffer if
it is not already loaded and runs imenu on the buffer. imenu is a
generalized symbol indexing program that indexes symbols in a buffer. The
JDE provides an imenu indexing spec for Java source files. The speedbar
uses the resulting index to map symbols to locations in the source buffer
it has just loaded. If you expand a node on a file that is already loaded,
speedbar simply switches you to the existing buffer, without reindexing the
buffer. Thus, if you have made any changes to the buffer, the index will be
out of date. To update the buffer, press the shift key when you click the
buffer's node. This causes speedbar to rebuild the index for the buffer (by
invoking imenu). BTW, a shift click is a "power-click" in speedbar
terminology. For more information, see speedbar-power-click in the speedbar
documentation.
- Paul