diff options
| author | Jay Belanger | 2005-01-19 05:55:53 +0000 |
|---|---|---|
| committer | Jay Belanger | 2005-01-19 05:55:53 +0000 |
| commit | 11e81923fc22fb4833f9518624d6611df99916e2 (patch) | |
| tree | 69bc9555fc19b9e8d5aafbe70d9abc7d5857cc05 | |
| parent | d9dfc855a4899cdfab373d9751a4d33e1c46dcde (diff) | |
| download | emacs-11e81923fc22fb4833f9518624d6611df99916e2.tar.gz emacs-11e81923fc22fb4833f9518624d6611df99916e2.zip | |
(Keep Arguments): Mention that keeping arguments doesn't work with
keyboard macros.
| -rw-r--r-- | man/calc.texi | 27 |
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 +}, | |||
| 12186 | the stack contains the sole number 5, but after @kbd{2 @key{RET} 3 K +}, | 12186 | the stack contains the sole number 5, but after @kbd{2 @key{RET} 3 K +}, |
| 12187 | the stack contains the arguments and the result: @samp{2 3 5}. | 12187 | the stack contains the arguments and the result: @samp{2 3 5}. |
| 12188 | 12188 | ||
| 12189 | This works for all commands that take arguments off the stack. As | 12189 | With the exception of keyboard macros, this works for all commands that |
| 12190 | another example, @kbd{K a s} simplifies a formula, pushing the | 12190 | take arguments off the stack. (To avoid potentially unpleasant behavior, |
| 12191 | simplified version of the formula onto the stack after the original | 12191 | keyboard macros ignore the @kbd{K} prefix.) As another example, @kbd{K |
| 12192 | formula (rather than replacing the original formula). | 12192 | a s} simplifies a formula, pushing the simplified version of the formula |
| 12193 | 12193 | onto the stack after the original formula (rather than replacing the | |
| 12194 | Note that you could get the same effect by typing @kbd{@key{RET} a s}, | 12194 | original formula). Note that you could get the same effect by typing |
| 12195 | copying the formula and then simplifying the copy. One difference | 12195 | @kbd{@key{RET} a s}, copying the formula and then simplifying the copy. |
| 12196 | is that for a very large formula the time taken to format the | 12196 | One difference is that for a very large formula the time taken to format |
| 12197 | intermediate copy in @kbd{@key{RET} a s} could be noticeable; @kbd{K a s} | 12197 | the intermediate copy in @kbd{@key{RET} a s} could be noticeable; @kbd{K |
| 12198 | would avoid this extra work. | 12198 | a s} would avoid this extra work. |
| 12199 | 12199 | ||
| 12200 | Even stack manipulation commands are affected. @key{TAB} works by | 12200 | Even stack manipulation commands are affected. @key{TAB} works by |
| 12201 | popping two values and pushing them back in the opposite order, | 12201 | popping 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} |
| 12209 | command is effectively the same as @kbd{K s t}. @xref{Storing Variables}. | 12209 | command is effectively the same as @kbd{K s t}. @xref{Storing Variables}. |
| 12210 | 12210 | ||
| 12211 | Keyboard macros may interact surprisingly with the @kbd{K} prefix. | ||
| 12212 | If you have defined a keyboard macro to be, say, @samp{Q +} to add | ||
| 12213 | one number to the square root of another, then typing @kbd{K X} will | ||
| 12214 | execute @kbd{K Q +}, probably not what you expected. The @kbd{K} | ||
| 12215 | prefix will apply to just the first command in the macro rather than | ||
| 12216 | the whole macro. | ||
| 12217 | |||
| 12218 | If you execute a command and then decide you really wanted to keep | 12211 | If you execute a command and then decide you really wanted to keep |
| 12219 | the argument, you can press @kbd{M-@key{RET}} (@code{calc-last-args}). | 12212 | the argument, you can press @kbd{M-@key{RET}} (@code{calc-last-args}). |
| 12220 | This command pushes the last arguments that were popped by any command | 12213 | This command pushes the last arguments that were popped by any command |