aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1991-03-15 20:39:25 +0000
committerRichard M. Stallman1991-03-15 20:39:25 +0000
commit540671f32b14364f13618c99f8b6772c1387550c (patch)
treea1ad7cc663d28cc2a549464f93b8db2929e79e36
parentac5b56bc22b8bcbd731fe47c22c8fc2e7d9f5321 (diff)
downloademacs-540671f32b14364f13618c99f8b6772c1387550c.tar.gz
emacs-540671f32b14364f13618c99f8b6772c1387550c.zip
*** empty log message ***
-rw-r--r--lisp/macros.el35
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.
23Argument SYMBOL is the name to define. 23Argument SYMBOL is the name to define.
24The symbol's function definition becomes the keyboard macro string. 24The symbol's function definition becomes the keyboard macro string.
25Such a \"function\" cannot be called from Lisp, but it is a valid command 25Such a \"function\" cannot be called from Lisp, but it is a valid editor command."
26definition 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.
38Second argument KEYS non-nil means also record the keys it is on. 37Optional 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
41This Lisp code will, when executed, define the kbd macro with the 40This Lisp code will, when executed, define the kbd macro with the same
42same definition it has now. If you say to record the keys, 41definition it has now. If you say to record the keys, the Lisp code
43the Lisp code will also rebind those keys to the macro. 42will also rebind those keys to the macro. Only global key bindings
44Only global key bindings are recorded since executing this Lisp code 43are recorded since executing this Lisp code always makes global
45always makes global bindings. 44bindings.
46 45
47To save a kbd macro, visit a file of Lisp code such as your ~/.emacs, 46To save a kbd macro, visit a file of Lisp code such as your ~/.emacs,
48use this command, and then save the file." 47use 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.
67With prefix argument, enters recursive edit, 66 With prefix argument, enters recursive edit, reading keyboard
68 reading keyboard commands even within a kbd macro. 67commands even within a kbd macro. You can give different commands
69 You can give different commands each time the macro executes. 68each time the macro executes.
70Without 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. 70Space -- execute the rest of the macro.
72 DEL -- skip the rest of the macro; start next repetition. 71DEL -- skip the rest of the macro; start next repetition.
73 C-d -- skip rest of the macro and don't repeat it any more. 72C-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 73C-r -- enter a recursive edit, then on exit ask again for a character
75 C-l -- redisplay screen and ask again." 74C-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