aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorChong Yidong2012-12-02 15:13:44 +0800
committerChong Yidong2012-12-02 15:13:44 +0800
commit547d686504dbff205a392aec5a1cf91de310f520 (patch)
tree8f1756541bea17b297f1160c3d12a473b5f46102 /doc/lispref
parentff3d86d0996d665f9cbb217ca24a63e59b058460 (diff)
downloademacs-547d686504dbff205a392aec5a1cf91de310f520.tar.gz
emacs-547d686504dbff205a392aec5a1cf91de310f520.zip
Document the conversion of kbd into a function.
* doc/emacs/custom.texi (Init Rebinding): kbd is now a function. * doc/lispref/keymaps.texi (Key Sequences): kbd is now a function. Fixes: debbugs:13052
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/keymaps.texi10
2 files changed, 9 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index adb52dc7f2b..b55ded918bb 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12012-12-02 Chong Yidong <cyd@gnu.org>
2
3 * keymaps.texi (Key Sequences): kbd is now a function.
4
12012-11-23 Martin Rudalics <rudalics@gmx.at> 52012-11-23 Martin Rudalics <rudalics@gmx.at>
2 6
3 * windows.texi (Basic Windows): Fix typo. 7 * windows.texi (Basic Windows): Fix typo.
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi
index d01ecba4bed..d9eddcee669 100644
--- a/doc/lispref/keymaps.texi
+++ b/doc/lispref/keymaps.texi
@@ -75,8 +75,8 @@ the vector @code{[?\C-x ?l]} represents the key sequence @kbd{C-x l}.
75 For examples of key sequences written in string and vector 75 For examples of key sequences written in string and vector
76representations, @ref{Init Rebinding,,, emacs, The GNU Emacs Manual}. 76representations, @ref{Init Rebinding,,, emacs, The GNU Emacs Manual}.
77 77
78@defmac kbd keyseq-text 78@defun kbd keyseq-text
79This macro converts the text @var{keyseq-text} (a string constant) 79This function converts the text @var{keyseq-text} (a string constant)
80into a key sequence (a string or vector constant). The contents of 80into a key sequence (a string or vector constant). The contents of
81@var{keyseq-text} should use the same syntax as in the buffer invoked 81@var{keyseq-text} should use the same syntax as in the buffer invoked
82by the @kbd{C-x C-k @key{RET}} (@code{kmacro-edit-macro}) command; in 82by the @kbd{C-x C-k @key{RET}} (@code{kmacro-edit-macro}) command; in
@@ -97,7 +97,7 @@ Manual}.
97 97
98This macro is not meant for use with arguments that vary---only 98This macro is not meant for use with arguments that vary---only
99with string constants. 99with string constants.
100@end defmac 100@end defun
101 101
102@node Keymap Basics 102@node Keymap Basics
103@section Keymap Basics 103@section Keymap Basics
@@ -1294,8 +1294,8 @@ numeric codes for the modifier bits don't appear in compiled files.
1294 The functions below signal an error if @var{keymap} is not a keymap, 1294 The functions below signal an error if @var{keymap} is not a keymap,
1295or if @var{key} is not a string or vector representing a key sequence. 1295or if @var{key} is not a string or vector representing a key sequence.
1296You can use event types (symbols) as shorthand for events that are 1296You can use event types (symbols) as shorthand for events that are
1297lists. The @code{kbd} macro (@pxref{Key Sequences}) is a convenient 1297lists. The @code{kbd} function (@pxref{Key Sequences}) is a
1298way to specify the key sequence. 1298convenient way to specify the key sequence.
1299 1299
1300@defun define-key keymap key binding 1300@defun define-key keymap key binding
1301This function sets the binding for @var{key} in @var{keymap}. (If 1301This function sets the binding for @var{key} in @var{keymap}. (If