diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/custom.texi | 12 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/keymaps.texi | 10 |
4 files changed, 19 insertions, 11 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 56001d6e29e..da38eea8848 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-12-02 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * custom.texi (Init Rebinding): kbd is now a function (Bug#13052). | ||
| 4 | |||
| 1 | 2012-11-18 Dani Moncayo <dmoncayo@gmail.com> | 5 | 2012-11-18 Dani Moncayo <dmoncayo@gmail.com> |
| 2 | 6 | ||
| 3 | * display.texi (Auto Scrolling): Fix some inaccuracies, plus | 7 | * display.texi (Auto Scrolling): Fix some inaccuracies, plus |
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index a614126dbc0..6ea1ad5535f 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -1648,7 +1648,7 @@ you can specify them in your initialization file by writing Lisp code. | |||
| 1648 | 1648 | ||
| 1649 | @findex kbd | 1649 | @findex kbd |
| 1650 | There are several ways to write a key binding using Lisp. The | 1650 | There are several ways to write a key binding using Lisp. The |
| 1651 | simplest is to use the @code{kbd} macro, which converts a textual | 1651 | simplest is to use the @code{kbd} function, which converts a textual |
| 1652 | representation of a key sequence---similar to how we have written key | 1652 | representation of a key sequence---similar to how we have written key |
| 1653 | sequences in this manual---into a form that can be passed as an | 1653 | sequences in this manual---into a form that can be passed as an |
| 1654 | argument to @code{global-set-key}. For example, here's how to bind | 1654 | argument to @code{global-set-key}. For example, here's how to bind |
| @@ -1676,11 +1676,11 @@ and mouse events: | |||
| 1676 | (global-set-key (kbd "<mouse-2>") 'mouse-save-then-kill) | 1676 | (global-set-key (kbd "<mouse-2>") 'mouse-save-then-kill) |
| 1677 | @end example | 1677 | @end example |
| 1678 | 1678 | ||
| 1679 | Instead of using the @code{kbd} macro, you can use a Lisp string or | 1679 | Instead of using @code{kbd}, you can use a Lisp string or vector to |
| 1680 | vector to specify the key sequence. Using a string is simpler, but | 1680 | specify the key sequence. Using a string is simpler, but only works |
| 1681 | only works for @acronym{ASCII} characters and Meta-modified | 1681 | for @acronym{ASCII} characters and Meta-modified @acronym{ASCII} |
| 1682 | @acronym{ASCII} characters. For example, here's how to bind @kbd{C-x | 1682 | characters. For example, here's how to bind @kbd{C-x M-l} to |
| 1683 | M-l} to @code{make-symbolic-link} (@pxref{Misc File Ops}): | 1683 | @code{make-symbolic-link} (@pxref{Misc File Ops}): |
| 1684 | 1684 | ||
| 1685 | @example | 1685 | @example |
| 1686 | (global-set-key "\C-x\M-l" 'make-symbolic-link) | 1686 | (global-set-key "\C-x\M-l" 'make-symbolic-link) |
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 @@ | |||
| 1 | 2012-12-02 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * keymaps.texi (Key Sequences): kbd is now a function. | ||
| 4 | |||
| 1 | 2012-11-23 Martin Rudalics <rudalics@gmx.at> | 5 | 2012-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 |
| 76 | representations, @ref{Init Rebinding,,, emacs, The GNU Emacs Manual}. | 76 | representations, @ref{Init Rebinding,,, emacs, The GNU Emacs Manual}. |
| 77 | 77 | ||
| 78 | @defmac kbd keyseq-text | 78 | @defun kbd keyseq-text |
| 79 | This macro converts the text @var{keyseq-text} (a string constant) | 79 | This function converts the text @var{keyseq-text} (a string constant) |
| 80 | into a key sequence (a string or vector constant). The contents of | 80 | into 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 |
| 82 | by the @kbd{C-x C-k @key{RET}} (@code{kmacro-edit-macro}) command; in | 82 | by the @kbd{C-x C-k @key{RET}} (@code{kmacro-edit-macro}) command; in |
| @@ -97,7 +97,7 @@ Manual}. | |||
| 97 | 97 | ||
| 98 | This macro is not meant for use with arguments that vary---only | 98 | This macro is not meant for use with arguments that vary---only |
| 99 | with string constants. | 99 | with 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, |
| 1295 | or if @var{key} is not a string or vector representing a key sequence. | 1295 | or if @var{key} is not a string or vector representing a key sequence. |
| 1296 | You can use event types (symbols) as shorthand for events that are | 1296 | You can use event types (symbols) as shorthand for events that are |
| 1297 | lists. The @code{kbd} macro (@pxref{Key Sequences}) is a convenient | 1297 | lists. The @code{kbd} function (@pxref{Key Sequences}) is a |
| 1298 | way to specify the key sequence. | 1298 | convenient way to specify the key sequence. |
| 1299 | 1299 | ||
| 1300 | @defun define-key keymap key binding | 1300 | @defun define-key keymap key binding |
| 1301 | This function sets the binding for @var{key} in @var{keymap}. (If | 1301 | This function sets the binding for @var{key} in @var{keymap}. (If |