Node:Visiting tokens, Next:, Previous:The Methods buffer, Up:The Methods buffer



Possible actions after visiting a token

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:

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.