aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2005-01-19 05:55:53 +0000
committerJay Belanger2005-01-19 05:55:53 +0000
commit11e81923fc22fb4833f9518624d6611df99916e2 (patch)
tree69bc9555fc19b9e8d5aafbe70d9abc7d5857cc05
parentd9dfc855a4899cdfab373d9751a4d33e1c46dcde (diff)
downloademacs-11e81923fc22fb4833f9518624d6611df99916e2.tar.gz
emacs-11e81923fc22fb4833f9518624d6611df99916e2.zip
(Keep Arguments): Mention that keeping arguments doesn't work with
keyboard macros.
-rw-r--r--man/calc.texi27
1 files changed, 10 insertions, 17 deletions
diff --git a/man/calc.texi b/man/calc.texi
index 84934dfedda..b3e499a8f8f 100644
--- a/man/calc.texi
+++ b/man/calc.texi
@@ -12186,16 +12186,16 @@ arguments from the stack. For example, after @kbd{2 @key{RET} 3 +},
12186the stack contains the sole number 5, but after @kbd{2 @key{RET} 3 K +}, 12186the stack contains the sole number 5, but after @kbd{2 @key{RET} 3 K +},
12187the stack contains the arguments and the result: @samp{2 3 5}. 12187the stack contains the arguments and the result: @samp{2 3 5}.
12188 12188
12189This works for all commands that take arguments off the stack. As 12189With the exception of keyboard macros, this works for all commands that
12190another example, @kbd{K a s} simplifies a formula, pushing the 12190take arguments off the stack. (To avoid potentially unpleasant behavior,
12191simplified version of the formula onto the stack after the original 12191keyboard macros ignore the @kbd{K} prefix.) As another example, @kbd{K
12192formula (rather than replacing the original formula). 12192a s} simplifies a formula, pushing the simplified version of the formula
12193 12193onto the stack after the original formula (rather than replacing the
12194Note that you could get the same effect by typing @kbd{@key{RET} a s}, 12194original formula). Note that you could get the same effect by typing
12195copying the formula and then simplifying the copy. One difference 12195@kbd{@key{RET} a s}, copying the formula and then simplifying the copy.
12196is that for a very large formula the time taken to format the 12196One difference is that for a very large formula the time taken to format
12197intermediate copy in @kbd{@key{RET} a s} could be noticeable; @kbd{K a s} 12197the intermediate copy in @kbd{@key{RET} a s} could be noticeable; @kbd{K
12198would avoid this extra work. 12198a s} would avoid this extra work.
12199 12199
12200Even stack manipulation commands are affected. @key{TAB} works by 12200Even stack manipulation commands are affected. @key{TAB} works by
12201popping two values and pushing them back in the opposite order, 12201popping two values and pushing them back in the opposite order,
@@ -12208,13 +12208,6 @@ original argument you could use either @kbd{' sin($1)} or
12208@kbd{K ' sin($)}. @xref{Algebraic Entry}. Also, the @kbd{s s} 12208@kbd{K ' sin($)}. @xref{Algebraic Entry}. Also, the @kbd{s s}
12209command is effectively the same as @kbd{K s t}. @xref{Storing Variables}. 12209command is effectively the same as @kbd{K s t}. @xref{Storing Variables}.
12210 12210
12211Keyboard macros may interact surprisingly with the @kbd{K} prefix.
12212If you have defined a keyboard macro to be, say, @samp{Q +} to add
12213one number to the square root of another, then typing @kbd{K X} will
12214execute @kbd{K Q +}, probably not what you expected. The @kbd{K}
12215prefix will apply to just the first command in the macro rather than
12216the whole macro.
12217
12218If you execute a command and then decide you really wanted to keep 12211If you execute a command and then decide you really wanted to keep
12219the argument, you can press @kbd{M-@key{RET}} (@code{calc-last-args}). 12212the argument, you can press @kbd{M-@key{RET}} (@code{calc-last-args}).
12220This command pushes the last arguments that were popped by any command 12213This command pushes the last arguments that were popped by any command