Mercurial > emacs
comparison src/keymap.c @ 56618:166ae6765a44
(Flocal_key_binding, Fglobal_key_binding)
(syms_of_keymap) <key-translation-map>: Doc fixes.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Sun, 08 Aug 2004 00:33:40 +0000 |
parents | c6f24a7d73bd |
children | a8be0bc345d2 1425b1df1da8 |
comparison
equal
deleted
inserted
replaced
56617:8685ad649821 | 56618:166ae6765a44 |
---|---|
1600 | 1600 |
1601 /* GC is possible in this function if it autoloads a keymap. */ | 1601 /* GC is possible in this function if it autoloads a keymap. */ |
1602 | 1602 |
1603 DEFUN ("local-key-binding", Flocal_key_binding, Slocal_key_binding, 1, 2, 0, | 1603 DEFUN ("local-key-binding", Flocal_key_binding, Slocal_key_binding, 1, 2, 0, |
1604 doc: /* Return the binding for command KEYS in current local keymap only. | 1604 doc: /* Return the binding for command KEYS in current local keymap only. |
1605 KEYS is a string, a sequence of keystrokes. | 1605 KEYS is a string or vector, a sequence of keystrokes. |
1606 The binding is probably a symbol with a function definition. | 1606 The binding is probably a symbol with a function definition. |
1607 | 1607 |
1608 If optional argument ACCEPT-DEFAULT is non-nil, recognize default | 1608 If optional argument ACCEPT-DEFAULT is non-nil, recognize default |
1609 bindings; see the description of `lookup-key' for more details about this. */) | 1609 bindings; see the description of `lookup-key' for more details about this. */) |
1610 (keys, accept_default) | 1610 (keys, accept_default) |
1619 | 1619 |
1620 /* GC is possible in this function if it autoloads a keymap. */ | 1620 /* GC is possible in this function if it autoloads a keymap. */ |
1621 | 1621 |
1622 DEFUN ("global-key-binding", Fglobal_key_binding, Sglobal_key_binding, 1, 2, 0, | 1622 DEFUN ("global-key-binding", Fglobal_key_binding, Sglobal_key_binding, 1, 2, 0, |
1623 doc: /* Return the binding for command KEYS in current global keymap only. | 1623 doc: /* Return the binding for command KEYS in current global keymap only. |
1624 KEYS is a string, a sequence of keystrokes. | 1624 KEYS is a string or vector, a sequence of keystrokes. |
1625 The binding is probably a symbol with a function definition. | 1625 The binding is probably a symbol with a function definition. |
1626 This function's return values are the same as those of `lookup-key' | 1626 This function's return values are the same as those of `lookup-key' |
1627 \(which see). | 1627 \(which see). |
1628 | 1628 |
1629 If optional argument ACCEPT-DEFAULT is non-nil, recognize default | 1629 If optional argument ACCEPT-DEFAULT is non-nil, recognize default |
3749 Vfunction_key_map = Fmake_sparse_keymap (Qnil); | 3749 Vfunction_key_map = Fmake_sparse_keymap (Qnil); |
3750 | 3750 |
3751 DEFVAR_LISP ("key-translation-map", &Vkey_translation_map, | 3751 DEFVAR_LISP ("key-translation-map", &Vkey_translation_map, |
3752 doc: /* Keymap of key translations that can override keymaps. | 3752 doc: /* Keymap of key translations that can override keymaps. |
3753 This keymap works like `function-key-map', but comes after that, | 3753 This keymap works like `function-key-map', but comes after that, |
3754 and applies even for keys that have ordinary bindings. */); | 3754 and its non-prefix bindings override ordinary bindings. */); |
3755 Vkey_translation_map = Qnil; | 3755 Vkey_translation_map = Qnil; |
3756 | 3756 |
3757 staticpro (&Vmouse_events); | 3757 staticpro (&Vmouse_events); |
3758 Vmouse_events = Fcons (intern ("menu-bar"), | 3758 Vmouse_events = Fcons (intern ("menu-bar"), |
3759 Fcons (intern ("tool-bar"), | 3759 Fcons (intern ("tool-bar"), |