Node:Visiting tokens, Next:Expanding, Previous:The Methods buffer, Up:The Methods buffer
You visit a token by clicking with either the primary oder secondary mouse-button (or by hitting RET if using the keyboard) onto a node in the Methods-tree-buffer of ECB. This simply selects the "right" edit-window (depends if clicked with the primary or secondary button and if the edit-window is splitted) and puts the point onto the first line of the clicked token.
But you can define if after this "basic" token-visit-action more
additional actions should be performed by ECB. You can either use some
of the predefined actions (e.g. highlighting the header-line of the
token) or define own actions. You can set different actions for
different major-modes. All this is done via the option
ecb-token-visit-post-actions
.
The following actions are currently predefined:
ecb-token-visit-highlight-token-header
ecb-token-visit-smart-token-start
ecb-token-visit-recenter
ecb-token-visit-recenter-top
ecb-token-visit-goto-doc-start
ecb-token-visit-narrow-token
See the documentation of these function for details what they do.
Per default ECB performs the actions
ecb-token-visit-smart-token-start
and
ecb-token-visit-highlight-token-header
for all major-modes.