Mercurial > emacs
comparison lispref/keymaps.texi @ 39469:a585fe0f948f
(Creating Keymaps): Fix the description of the result of make-keymap.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Wed, 26 Sep 2001 19:54:42 +0000 |
parents | 86ff0f926954 |
children | 30c76f38ad7b |
comparison
equal
deleted
inserted
replaced
39468:641a8b1d652c | 39469:a585fe0f948f |
---|---|
217 | 217 |
218 Here we describe the functions for creating keymaps. | 218 Here we describe the functions for creating keymaps. |
219 | 219 |
220 @c ??? This should come after make-sparse-keymap | 220 @c ??? This should come after make-sparse-keymap |
221 @defun make-keymap &optional prompt | 221 @defun make-keymap &optional prompt |
222 This function creates and returns a new full keymap (i.e., one | 222 This function creates and returns a new full keymap. That keymap |
223 containing a vector of length 128 for defining all the @sc{ascii} | 223 contains a char-table (@pxref{Char-Tables}) with 384 slots: the first |
224 characters). The new keymap initially binds all @sc{ascii} characters | 224 128 slots are for defining all the @sc{ascii} characters, the next 128 |
225 to @code{nil}, and does not bind any other kind of event. | 225 slots are for 8-bit European characters, and each one of the final 128 |
226 slots is for one character set of non-@sc{ascii} characters supported by | |
227 Emacs. The new keymap initially binds all these characters to | |
228 @code{nil}, and does not bind any other kind of event. | |
226 | 229 |
227 @example | 230 @example |
228 @group | 231 @group |
229 (make-keymap) | 232 (make-keymap) |
230 @result{} (keymap [nil nil nil @dots{} nil nil]) | 233 @result{} (keymap [nil nil nil @dots{} nil nil]) |
236 (@pxref{Defining Menus}). | 239 (@pxref{Defining Menus}). |
237 @end defun | 240 @end defun |
238 | 241 |
239 @defun make-sparse-keymap &optional prompt | 242 @defun make-sparse-keymap &optional prompt |
240 This function creates and returns a new sparse keymap with no entries. | 243 This function creates and returns a new sparse keymap with no entries. |
241 The new keymap does not bind any events. The argument @var{prompt} | 244 The new keymap does not contain a char-table, unlike @code{make-keymap}, |
242 specifies a prompt string, as in @code{make-keymap}. | 245 and does not bind any events. The argument @var{prompt} specifies a |
246 prompt string, as in @code{make-keymap}. | |
243 | 247 |
244 @example | 248 @example |
245 @group | 249 @group |
246 (make-sparse-keymap) | 250 (make-sparse-keymap) |
247 @result{} (keymap) | 251 @result{} (keymap) |