diff options
| author | Richard M. Stallman | 1991-03-15 20:39:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1991-03-15 20:39:25 +0000 |
| commit | 540671f32b14364f13618c99f8b6772c1387550c (patch) | |
| tree | a1ad7cc663d28cc2a549464f93b8db2929e79e36 | |
| parent | ac5b56bc22b8bcbd731fe47c22c8fc2e7d9f5321 (diff) | |
| download | emacs-540671f32b14364f13618c99f8b6772c1387550c.tar.gz emacs-540671f32b14364f13618c99f8b6772c1387550c.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/macros.el | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/lisp/macros.el b/lisp/macros.el index cdfd97e9860..b318ff8eefb 100644 --- a/lisp/macros.el +++ b/lisp/macros.el | |||
| @@ -22,8 +22,7 @@ | |||
| 22 | "Assign a name to the last keyboard macro defined. | 22 | "Assign a name to the last keyboard macro defined. |
| 23 | Argument SYMBOL is the name to define. | 23 | Argument SYMBOL is the name to define. |
| 24 | The symbol's function definition becomes the keyboard macro string. | 24 | The symbol's function definition becomes the keyboard macro string. |
| 25 | Such a \"function\" cannot be called from Lisp, but it is a valid command | 25 | Such a \"function\" cannot be called from Lisp, but it is a valid editor command." |
| 26 | definition for the editor command loop." | ||
| 27 | (interactive "SName for last kbd macro: ") | 26 | (interactive "SName for last kbd macro: ") |
| 28 | (or last-kbd-macro | 27 | (or last-kbd-macro |
| 29 | (error "No keyboard macro defined")) | 28 | (error "No keyboard macro defined")) |
| @@ -35,14 +34,14 @@ definition for the editor command loop." | |||
| 35 | 34 | ||
| 36 | (defun insert-kbd-macro (macroname &optional keys) | 35 | (defun insert-kbd-macro (macroname &optional keys) |
| 37 | "Insert in buffer the definition of kbd macro NAME, as Lisp code. | 36 | "Insert in buffer the definition of kbd macro NAME, as Lisp code. |
| 38 | Second argument KEYS non-nil means also record the keys it is on. | 37 | Optional second arg KEYS means also record the keys it is on |
| 39 | (This is the prefix argument, when calling interactively.) | 38 | (this is the prefix argument, when calling interactively). |
| 40 | 39 | ||
| 41 | This Lisp code will, when executed, define the kbd macro with the | 40 | This Lisp code will, when executed, define the kbd macro with the same |
| 42 | same definition it has now. If you say to record the keys, | 41 | definition it has now. If you say to record the keys, the Lisp code |
| 43 | the Lisp code will also rebind those keys to the macro. | 42 | will also rebind those keys to the macro. Only global key bindings |
| 44 | Only global key bindings are recorded since executing this Lisp code | 43 | are recorded since executing this Lisp code always makes global |
| 45 | always makes global bindings. | 44 | bindings. |
| 46 | 45 | ||
| 47 | To save a kbd macro, visit a file of Lisp code such as your ~/.emacs, | 46 | To save a kbd macro, visit a file of Lisp code such as your ~/.emacs, |
| 48 | use this command, and then save the file." | 47 | use this command, and then save the file." |
| @@ -64,15 +63,15 @@ use this command, and then save the file." | |||
| 64 | 63 | ||
| 65 | (defun kbd-macro-query (flag) | 64 | (defun kbd-macro-query (flag) |
| 66 | "Query user during kbd macro execution. | 65 | "Query user during kbd macro execution. |
| 67 | With prefix argument, enters recursive edit, | 66 | With prefix argument, enters recursive edit, reading keyboard |
| 68 | reading keyboard commands even within a kbd macro. | 67 | commands even within a kbd macro. You can give different commands |
| 69 | You can give different commands each time the macro executes. | 68 | each time the macro executes. |
| 70 | Without prefix argument, reads a character. Your options are: | 69 | Without prefix argument, reads a character. Your options are: |
| 71 | Space -- execute the rest of the macro. | 70 | Space -- execute the rest of the macro. |
| 72 | DEL -- skip the rest of the macro; start next repetition. | 71 | DEL -- skip the rest of the macro; start next repetition. |
| 73 | C-d -- skip rest of the macro and don't repeat it any more. | 72 | C-d -- skip rest of the macro and don't repeat it any more. |
| 74 | C-r -- enter a recursive edit, then on exit ask again for a character | 73 | C-r -- enter a recursive edit, then on exit ask again for a character |
| 75 | C-l -- redisplay screen and ask again." | 74 | C-l -- redisplay screen and ask again." |
| 76 | (interactive "P") | 75 | (interactive "P") |
| 77 | (or executing-macro | 76 | (or executing-macro |
| 78 | defining-kbd-macro | 77 | defining-kbd-macro |