Lines Matching refs:bindings

416   KeyTab *bindings;          /* A table of key-bindings */
780 * Set up terminal-specific key bindings.
972 * Bind the actual arrow key bindings to match those of the symbolic
973 * arrow-key bindings.
1458 * Define the default key-bindings in emacs mode.
1534 * Define the default key-bindings in vi mode. Note that in vi-mode
1535 * meta-key bindings are command-mode bindings. For example M-i first
1790 gl->bindings = NULL;
1989 * Allocate an empty table of key bindings.
1991 gl->bindings = _new_KeyTab();
1992 if(!gl->bindings)
1998 if(_kt_set_action(gl->bindings, gl_actions[i].name, gl_actions[i].fn, NULL))
2002 * Set up the default bindings.
2076 gl->bindings = _del_KeyTab(gl->bindings);
2120 * is an ambiguous prefix of all bindings.
2137 if(_kt_set_keybinding(gl->bindings, binder, keyseq, action)) {
2138 _err_record_msg(gl->err, _kt_last_error(gl->bindings), END_ERR_MSG);
5959 * Clear any terminal-specific key bindings that were taken from the
5962 _kt_clear_bindings(gl->bindings, KTB_TERM);
5964 * If we have a terminal install new bindings for it.
6005 * Set up terminal-specific key bindings.
6017 * Install key-bindings for the special terminal characters.
6045 if(_kt_set_keybinding(gl->bindings, KTB_TERM, "^V", "literal-next")) {
6046 _err_record_msg(gl->err, _kt_last_error(gl->bindings), END_ERR_MSG);
6160 * arrow key bindings, bind the specified action functions to the default
6212 if(_kt_lookup_keybinding(gl->bindings, name, strlen(name), &keysym, &nsym)
6224 _kt_set_keyfn(gl->bindings, KTB_TERM, term_seq, fn, data)) ||
6226 _kt_set_keyfn(gl->bindings, KTB_NORM, def_seq1, fn, data)) ||
6228 _kt_set_keyfn(gl->bindings, KTB_NORM, def_seq2, fn, data))) {
6229 _err_record_msg(gl->err, _kt_last_error(gl->bindings), END_ERR_MSG);
6246 * who KtBinder Who bindings are to be installed for.
6362 * who KtBinder Who bindings are to be installed for.
6488 if(_kt_set_keybinding(gl->bindings, who, keyseq, action)) {
6490 _kt_last_error(gl->bindings));
6932 * Install the default key-bindings of the requested editor.
6936 _kt_clear_bindings(gl->bindings, KTB_NORM);
6937 _kt_clear_bindings(gl->bindings, KTB_TERM);
6938 (void) _kt_add_bindings(gl->bindings, KTB_NORM, gl_emacs_bindings,
6942 _kt_clear_bindings(gl->bindings, KTB_NORM);
6943 _kt_clear_bindings(gl->bindings, KTB_TERM);
6944 (void) _kt_add_bindings(gl->bindings, KTB_NORM, gl_vi_bindings,
6961 * Reinstate terminal-specific bindings.
6969 * This is an action function that switches to editing using emacs bindings
6977 * This is an action function that switches to editing using vi bindings
8223 * or "right" cursor key bindings, we need to prefix the
8259 switch(_kt_lookup_keybinding(gl->bindings, keyseq, nkey, &keysym, &nsym)) {
10929 if(_kt_lookup_action(gl->bindings, name, &current_fn, &current_data) == 0) {
10967 if(_kt_set_action(gl->bindings, name, action_fn, cb)) {
10968 _err_record_msg(gl->err, _kt_last_error(gl->bindings), END_ERR_MSG);
10976 if(keyseq && _kt_set_keybinding(gl->bindings, KTB_NORM, keyseq, name)) {
10977 _err_record_msg(gl->err, _kt_last_error(gl->bindings), END_ERR_MSG);
11055 if(_kt_lookup_action(gl->bindings, name, &current_fn, &current_data) == 0) {
11094 if(_kt_set_action(gl->bindings, name, action_fn, a)) {
11095 _err_record_msg(gl->err, _kt_last_error(gl->bindings), END_ERR_MSG);
11103 if(keyseq && _kt_set_keybinding(gl->bindings, KTB_NORM, keyseq, name)) {
11104 _err_record_msg(gl->err, _kt_last_error(gl->bindings), END_ERR_MSG);
12427 if(keyseq && _kt_set_keybinding(gl->bindings, binder, keyseq, action)) {
12428 _err_record_msg(gl->err, _kt_last_error(gl->bindings), END_ERR_MSG);