diff options
| author | Dave Love | 2000-02-23 11:42:38 +0000 |
|---|---|---|
| committer | Dave Love | 2000-02-23 11:42:38 +0000 |
| commit | e5a00c9c86915ff4707abee65328c459fcf0ecaa (patch) | |
| tree | 2e815831fceff9a9ad5774078e53a4c1fc35bcfe | |
| parent | 4ced66fd688c0e13c622e5943ca3ce361dff01ca (diff) | |
| download | emacs-e5a00c9c86915ff4707abee65328c459fcf0ecaa.tar.gz emacs-e5a00c9c86915ff4707abee65328c459fcf0ecaa.zip | |
define-key-after change.
| -rw-r--r-- | lispref/keymaps.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lispref/keymaps.texi b/lispref/keymaps.texi index 0826db07df8..3dfc2576cac 100644 --- a/lispref/keymaps.texi +++ b/lispref/keymaps.texi | |||
| @@ -2202,15 +2202,16 @@ put it in a particular place among the menu's existing items. If you | |||
| 2202 | use @code{define-key} to add the item, it normally goes at the front of | 2202 | use @code{define-key} to add the item, it normally goes at the front of |
| 2203 | the menu. To put it elsewhere in the menu, use @code{define-key-after}: | 2203 | the menu. To put it elsewhere in the menu, use @code{define-key-after}: |
| 2204 | 2204 | ||
| 2205 | @defun define-key-after map key binding after | 2205 | @defun define-key-after map key binding &optional after |
| 2206 | Define a binding in @var{map} for @var{key}, with value @var{binding}, | 2206 | Define a binding in @var{map} for @var{key}, with value @var{binding}, |
| 2207 | just like @code{define-key}, but position the binding in @var{map} after | 2207 | just like @code{define-key}, but position the binding in @var{map} after |
| 2208 | the binding for the event @var{after}. The argument @var{key} should be | 2208 | the binding for the event @var{after}. The argument @var{key} should be |
| 2209 | of length one---a vector or string with just one element. But | 2209 | of length one---a vector or string with just one element. But |
| 2210 | @var{after} should be a single event type---a symbol or a character, not | 2210 | @var{after} should be a single event type---a symbol or a character, not |
| 2211 | a sequence. The new binding goes after the binding for @var{after}. If | 2211 | a sequence. The new binding goes after the binding for @var{after}. If |
| 2212 | @var{after} is @code{t}, then the new binding goes last, at the end of | 2212 | @var{after} is @code{t} or omitted, then the new binding goes last, at |
| 2213 | the keymap. | 2213 | the end of the keymap. New bindings are added before any inherited |
| 2214 | keymap. | ||
| 2214 | 2215 | ||
| 2215 | Here is an example: | 2216 | Here is an example: |
| 2216 | 2217 | ||