Lines Matching refs:el_keymacro
51 * el->el_keymacro.map)
58 * are in el->el_keymacro.map, adding the key "abc" will cause
73 * The Nodes of the el->el_keymacro.map. The el->el_keymacro.map is a
108 el->el_keymacro.buf = el_calloc(KEY_BUFSIZ,
109 sizeof(*el->el_keymacro.buf));
110 if (el->el_keymacro.buf == NULL)
112 el->el_keymacro.map = NULL;
124 el_free(el->el_keymacro.buf);
125 el->el_keymacro.buf = NULL;
126 node__free(el->el_keymacro.map);
137 el->el_keymacro.val.cmd = (el_action_t) cmd;
138 return &el->el_keymacro.val;
149 el->el_keymacro.val.str = str;
150 return &el->el_keymacro.val;
155 * Takes all nodes on el->el_keymacro.map and puts them on free list.
156 * Then initializes el->el_keymacro.map with arrow keys
163 node__put(el, el->el_keymacro.map);
164 el->el_keymacro.map = NULL;
170 * Calls the recursive function with entry point el->el_keymacro.map
182 return node_trav(el, el->el_keymacro.map, ch, val);
187 * Adds key to the el->el_keymacro.map and associates the value in
188 * val with it. If key is already is in el->el_keymacro.map, the new
207 if (el->el_keymacro.map == NULL)
209 el->el_keymacro.map = node__get(key[0]);
212 /* Now recurse through el->el_keymacro.map */
213 (void) node__try(el, el->el_keymacro.map, key, val, ntype);
248 if (el->el_keymacro.map == NULL)
251 (void) node__delete(el, &el->el_keymacro.map, key);
258 * Print entire el->el_keymacro.map if null
264 /* do nothing if el->el_keymacro.map is empty and null key specified */
265 if (el->el_keymacro.map == NULL && *key == 0)
268 el->el_keymacro.buf[0] = '"';
269 if (node_lookup(el, key, el->el_keymacro.map, (size_t)1) <= -1)
497 /* If match put this char into el->el_keymacro.buf. Recurse */
500 used = ct_visual_char(el->el_keymacro.buf + cnt,
512 el->el_keymacro.buf[px] = '"';
513 el->el_keymacro.buf[px + 1] = '\0';
514 keymacro_kprint(el, el->el_keymacro.buf,
542 el->el_keymacro.buf[++cnt] = '"';
543 el->el_keymacro.buf[++cnt] = '\0';
547 el->el_keymacro.buf);
558 used = ct_visual_char(el->el_keymacro.buf + cnt, KEY_BUFSIZ - cnt,
562 el->el_keymacro.buf[cnt + (size_t)used ] = '"';
563 el->el_keymacro.buf[cnt + (size_t)used + 1] = '\0';
564 keymacro_kprint(el, el->el_keymacro.buf, &ptr->val, ptr->type);