Node:Tree-buffer keybindings, Next:The tree-buffer-API, Previous:Updating a tree-buffer, Up:tree-buffer
When creating a tree-buffer with tree-buffer-create
the
following keys will automatically being bound:
self-insert-command
)
tree-buffer-incremental-node-search
if the argument
INCR-SEARCH-P of tree-buffer-create
was set to not nil.
See the documentation of tree-buffer-incremental-node-search
for all details.
If the callback-function in slot IS-CLICK-VALID-FN of the tree-buffer (see A new tree-buffer) returns nil then nothing is done.
If either RET has been hitted or point is as the node-name (i.e. the user has clicked with the mouse-1/2 at the node-name) then the callback-function in slot NODE-SELECTED-FN is called with the needed arguments (see A new tree-buffer).
If point is at the expand/collape-button then depending on the expansion-state of the node either the callback in slot NODE-EXPANDED-FN or NODE-COLLAPSED-FN is called (for parameters see again A new tree-buffer).
IMPORTANT: None of these callbacks must modify the slot EXPANDED of the passed node because this is done automatically by the action-dispatcher!
At the end the dispatcher updates the tree-buffer-display with
optimized display of the clicked/selected node - see Updating a tree-buffer. This means tree-buffer-update
is called with that
node as argument.
IMPORTANT: None of these callbacks must modify the slot EXPANDED of the passed node because this is done automatically by the action-dispatcher!
At the end the the tree-buffer-display is updated with optimized
display of the clicked/selected node - see Updating a tree-buffer. This means tree-buffer-update
is called with that
node as argument.
tree-buffer-show-node-menu-keyboard
: Activates the popup-menu
of current tree-buffer for current node-type via keyboard. If called
with a prefix-arg then the library tmm.el
is used for
displaying the popup-menu - ignored with XEmacs.
tree-buffer-arrow-pressed
which implements the smart arrow-key-navigation described in A new tree-buffer at argument ARROW-NAVIGATION.
In addition to these automatically bound keys you can add further
keybindings to the local-keymap of the tree-buffer with the parameter
AFTER-CREATE-HOOK of tree-buffer-create
. See A new tree-buffer for an example which binds C-t in this hook.