comparison src/keymap.c @ 55722:623ab06bb37b

(Fdefine_key): Doc fix.
author Juanma Barranquero <lekktu@gmail.com>
date Sat, 22 May 2004 01:52:56 +0000
parents 5429150a04f3
children c663e2e97168 50b9a96c837c
comparison
equal deleted inserted replaced
55721:b0b446f1087b 55722:623ab06bb37b
1076 Using [t] for KEY creates a default definition, which applies to any 1076 Using [t] for KEY creates a default definition, which applies to any
1077 event type that has no other definition in this keymap. 1077 event type that has no other definition in this keymap.
1078 1078
1079 DEF is anything that can be a key's definition: 1079 DEF is anything that can be a key's definition:
1080 nil (means key is undefined in this keymap), 1080 nil (means key is undefined in this keymap),
1081 a command (a Lisp function suitable for interactive calling) 1081 a command (a Lisp function suitable for interactive calling),
1082 a string (treated as a keyboard macro), 1082 a string (treated as a keyboard macro),
1083 a keymap (to define a prefix key), 1083 a keymap (to define a prefix key),
1084 a symbol. When the key is looked up, the symbol will stand for its 1084 a symbol (when the key is looked up, the symbol will stand for its
1085 function definition, which should at that time be one of the above, 1085 function definition, which should at that time be one of the above,
1086 or another symbol whose function definition is used, etc. 1086 or another symbol whose function definition is used, etc.),
1087 a cons (STRING . DEFN), meaning that DEFN is the definition 1087 a cons (STRING . DEFN), meaning that DEFN is the definition
1088 (DEFN should be a valid definition in its own right), 1088 (DEFN should be a valid definition in its own right),
1089 or a cons (KEYMAP . CHAR), meaning use definition of CHAR in map KEYMAP. 1089 or a cons (MAP . CHAR), meaning use definition of CHAR in keymap MAP.
1090 1090
1091 If KEYMAP is a sparse keymap with a binding for KEY, the existing 1091 If KEYMAP is a sparse keymap with a binding for KEY, the existing
1092 binding is altered. If there is no binding for KEY, the new pair 1092 binding is altered. If there is no binding for KEY, the new pair
1093 binding KEY to DEF is added at the front of KEYMAP. */) 1093 binding KEY to DEF is added at the front of KEYMAP. */)
1094 (keymap, key, def) 1094 (keymap, key, def)