• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/src/

Lines Matching +defs:function +defs:list

93 /* Keymap mapping ASCII function key sequences onto their preferred forms.
98 /* Keymap mapping ASCII function key sequences onto their preferred forms. */
101 /* A list of all commands given new bindings since a certain time
149 "command undefined". ALIST is an assoc-list which holds bindings for
150 function keys, mouse events, and any other things that appear in the
171 which binds the function key or mouse event SYMBOL to DEFINITION.
184 /* This function is used for installing the standard key bindings
212 A keymap is a list (keymap . ALIST),
213 or a symbol whose function definition is itself a keymap.
244 If AUTOLOAD is non-zero and OBJECT is a symbol whose function value
260 This function can GC when AUTOLOAD is non-zero, because it calls
323 Lisp_Object list;
328 list = XCDR (keymap);
329 for (; CONSP (list); list = XCDR (list))
332 if (KEYMAPP (list))
333 return list;
336 return get_keymap (list, 0, autoload);
366 Lisp_Object list, prev;
395 list = XCDR (prev);
398 if (!CONSP (list) || KEYMAPP (list))
409 prev = list;
414 for (list = XCDR (keymap); CONSP (list); list = XCDR (list))
417 if (EQ (XCAR (list), Qkeymap))
421 if (CONSP (XCAR (list))
422 && CONSP (XCDR (XCAR (list))))
423 fix_submap_inheritance (keymap, XCAR (XCAR (list)),
424 XCDR (XCAR (list)));
426 if (VECTORP (XCAR (list)))
427 for (i = 0; i < XVECTOR (XCAR (list))->size; i++)
428 if (CONSP (XVECTOR (XCAR (list))->contents[i]))
430 XVECTOR (XCAR (list))->contents[i]);
432 if (CHAR_TABLE_P (XCAR (list)))
437 XCAR (list), XCAR (list),
526 /* If idx is a list (some sort of mouse click, perhaps?),
527 the index we want to use is the car of the list, which
765 (function, keymap, sort_first)
766 Lisp_Object function, keymap, sort_first;
768 if (INTEGERP (function))
771 xsignal1 (Qinvalid_function, function);
773 return call3 (intern ("map-keymap-internal"), function, keymap, Qt);
775 map_keymap (keymap, map_keymap_call, function, NULL, 1);
781 An indirect definition is a list of the form
894 /* If idx is a list (some sort of mouse click, perhaps?),
895 the index we want to use is the car of the list, which
1039 /* There may also be a list that caches key equivalences.
1109 /* GC is possible in this function if it autoloads a keymap. */
1123 a command (a Lisp function suitable for interactive calling),
1127 function definition, which should at that time be one of the above,
1128 or another symbol whose function definition is used, etc.),
1230 /* This function may GC (it calls Fkey_binding). */
1243 If the optional argument KEYMAPS is non-nil, it should be a list of
1271 /* GC is possible in this function if it autoloads a keymap. */
1286 usable as a general function for probing keymaps. However, if the
1434 This function always returns a pointer to the same buffer, and may
1438 new assoclist, list, what have you) for each invocation would
1443 which would call this function again, resulting in an infinite
1445 list, let the key sequence be read, and hope some other piece of
1500 /* Use malloc here. See the comment above this function.
1549 doc: /* Return a list of the currently active keymaps.
1579 /* Now put all the minor mode keymaps on the list. */
1595 /* GC is possible in this function if it autoloads a keymap. */
1600 The binding is probably a symbol with a function definition.
1604 usable as a general function for probing keymaps. However, if the
1805 /* GC is possible in this function if it autoloads a keymap. */
1810 The binding is probably a symbol with a function definition.
1824 /* GC is possible in this function if it autoloads a keymap. */
1829 The binding is probably a symbol with a function definition.
1830 This function's return values are the same as those of `lookup-key'
1841 /* GC is possible in this function if it autoloads a keymap. */
1850 be ignored. Similarly, the list doesn't include non-prefix bindings
1888 A new sparse keymap is stored as COMMAND's function definition and its value.
1891 as a function.
1894 This function returns COMMAND. */)
1948 doc: /* Return a list of keymaps for the minor modes of the current buffer. */)
2007 thisseq, so stick it in the list right
2030 /* This function cannot GC. */
2035 Returns a list of elements of the form (KEYS . MAP), where the sequence
2059 It might even give us a list that isn't a keymap. */
2092 /* For each map in the list maps,
2094 and stick them at the end if they are not already in the list.
2097 nodes, and maps accumulates a list of all nodes visited. */
2155 /* This function cannot GC. */
2169 Lisp_Object list;
2186 list = prefix, prefix = Qnil;
2188 list = keys, keys = Qnil;
2201 if (STRINGP (list))
2202 size = SCHARS (list);
2203 else if (VECTORP (list))
2204 size = XVECTOR (list)->size;
2205 else if (CONSP (list))
2206 size = XINT (Flength (list));
2208 wrong_type_argument (Qarrayp, list);
2214 if (STRINGP (list))
2217 FETCH_STRING_CHAR_ADVANCE (c, list, i, i_byte);
2222 else if (VECTORP (list))
2224 key = AREF (list, i++);
2228 key = XCAR (list);
2229 list = XCDR (list);
2393 /* This function cannot GC. */
2400 around function keys and event symbols. */)
2507 /* This function cannot GC. */
2513 Also, this function recognizes the 2**7 bit as the Meta character,
2570 /* Like Flookup_key, but uses a list of keymaps SHADOW instead of a single map.
2597 /* This function can GC if Flookup_key autoloads any keymaps. */
2725 Lisp_Object sequence, remapped, function;
2737 && (function = AREF (sequence, 1), SYMBOLP (function)))
2741 remapped1 = where_is_internal (function, keymaps, firstonly, noindirect, Qt);
2746 if (!EQ (shadow_lookup (keymaps, XCAR (remapped1), Qnil), function))
2818 doc: /* Return list of keys that invoke DEFINITION.
2821 If KEYMAP is a list of keymaps, search only those keymaps.
2824 rather than a list of all possible key sequences.
2836 remapped command in the returned list. */)
2918 /* This is the function that Fwhere_is_internal calls using map_char_table.
2923 Since map_char_table doesn't really use the return value from this function,
2926 This function can GC because it calls where_is_internal_1 which can
2957 /* This function can GC because get_keyelt can. */
3003 doc: /* Insert the list of all defined keys and their definitions.
3004 The list is inserted in the current buffer, while the bindings are
3154 /* Print the function-key-map translations under this prefix. */
3167 If SHADOW is non-nil, it is a list of maps;
3209 Lisp_Object list;
3212 for (list = maps; !NILP (list); list = XCDR (list))
3216 elt = Fcar (list);
3375 /* qsort comparison function for sorting `struct describe_map_elt' by
3599 DESCRIBER is the output function used; nil means use `princ'. */)
3632 SHADOW is a list of keymaps that shadow this map.
3640 When describing a sub-char-table, INDICES is a list of
4005 Return list of symbols found. */)
4109 in the list takes precedence. */);
4129 DEFVAR_LISP ("function-key-map", &Vfunction_key_map,
4131 This is used mainly for mapping ASCII function key sequences into
4132 real Emacs function key events (symbols).
4134 The `read-key-sequence' function replaces any subsequence bound by
4135 `function-key-map' with its binding. More precisely, when the active
4137 `function-key-map' binds a suffix of the sequence to a vector or string,
4141 If the binding is a function, it is called with one argument (the prompt)
4144 The events that come from bindings in `function-key-map' are not
4145 themselves looked up in `function-key-map'.
4147 For example, suppose `function-key-map' binds `ESC O P' to [f1].
4155 This keymap works like `function-key-map', but comes after that,