2666 |
scrolling to see them all. Press @kbd{<} and @kbd{>} to scroll the |
scrolling to see them all. Press @kbd{<} and @kbd{>} to scroll the |
2667 |
stack window left and right by half its width. Another way to view |
stack window left and right by half its width. Another way to view |
2668 |
something large is to press @kbd{`} (back-quote) to edit the top of |
something large is to press @kbd{`} (back-quote) to edit the top of |
2669 |
stack in a separate window. (Press @kbd{M-# M-#} when you are done.) |
stack in a separate window. (Press @kbd{C-c C-c} when you are done.) |
2670 |
|
|
2671 |
You can enter non-decimal numbers using the @kbd{#} symbol, too. |
You can enter non-decimal numbers using the @kbd{#} symbol, too. |
2672 |
Let's see what the hexadecimal number @samp{5FE} looks like in |
Let's see what the hexadecimal number @samp{5FE} looks like in |
5588 |
@end smallexample |
@end smallexample |
5589 |
|
|
5590 |
To edit a variable, type @kbd{s e} and the variable name, use regular |
To edit a variable, type @kbd{s e} and the variable name, use regular |
5591 |
Emacs editing commands as necessary, then type @kbd{M-# M-#} or |
Emacs editing commands as necessary, then type @kbd{C-c C-c} to store |
5592 |
@kbd{C-c C-c} to store the edited value back into the variable. |
the edited value back into the variable. |
5593 |
You can also use @w{@kbd{s e}} to create a new variable if you wish. |
You can also use @w{@kbd{s e}} to create a new variable if you wish. |
5594 |
|
|
5595 |
Notice that the first time you use each rule, Calc puts up a ``compiling'' |
Notice that the first time you use each rule, Calc puts up a ``compiling'' |
6381 |
@end smallexample |
@end smallexample |
6382 |
|
|
6383 |
@noindent |
@noindent |
6384 |
Press @kbd{M-# M-#} to finish editing and return to the Calculator. |
Press @kbd{C-c C-c} to finish editing and return to the Calculator. |
6385 |
|
|
6386 |
@smallexample |
@smallexample |
6387 |
@group |
@group |
12059 |
specified number of stack entries at once. (An argument of zero edits |
specified number of stack entries at once. (An argument of zero edits |
12060 |
the entire stack; a negative argument edits one specific stack entry.) |
the entire stack; a negative argument edits one specific stack entry.) |
12061 |
|
|
12062 |
When you are done editing, press @kbd{M-# M-#} to finish and return |
When you are done editing, press @kbd{C-c C-c} to finish and return |
12063 |
to Calc. The @key{RET} and @key{LFD} keys also work to finish most |
to Calc. The @key{RET} and @key{LFD} keys also work to finish most |
12064 |
sorts of editing, though in some cases Calc leaves @key{RET} with its |
sorts of editing, though in some cases Calc leaves @key{RET} with its |
12065 |
usual meaning (``insert a newline'') if it's a situation where you |
usual meaning (``insert a newline'') if it's a situation where you |
12066 |
might want to insert new lines into the editing buffer. The traditional |
might want to insert new lines into the editing buffer. |
|
Emacs ``finish'' key sequence, @kbd{C-c C-c}, also works to finish |
|
|
editing and may be easier to type, depending on your keyboard. |
|
12067 |
|
|
12068 |
When you finish editing, the Calculator parses the lines of text in |
When you finish editing, the Calculator parses the lines of text in |
12069 |
the @samp{*Calc Edit*} buffer as numbers or formulas, replaces the |
the @samp{*Calc Edit*} buffer as numbers or formulas, replaces the |
12071 |
then kills the @samp{*Calc Edit*} buffer. The original Calculator buffer |
then kills the @samp{*Calc Edit*} buffer. The original Calculator buffer |
12072 |
continues to exist during editing, but for best results you should be |
continues to exist during editing, but for best results you should be |
12073 |
careful not to change it until you have finished the edit. You can |
careful not to change it until you have finished the edit. You can |
12074 |
also cancel the edit by pressing @kbd{M-# x}. |
also cancel the edit by killing the buffer with @kbd{C-x k}. |
12075 |
|
|
12076 |
The formula is normally reevaluated as it is put onto the stack. |
The formula is normally reevaluated as it is put onto the stack. |
12077 |
For example, editing @samp{a + 2} to @samp{3 + 2} and pressing |
For example, editing @samp{a + 2} to @samp{3 + 2} and pressing |
12078 |
@kbd{M-# M-#} will push 5 on the stack. If you use @key{LFD} to |
@kbd{C-c C-c} will push 5 on the stack. If you use @key{LFD} to |
12079 |
finish, Calc will put the result on the stack without evaluating it. |
finish, Calc will put the result on the stack without evaluating it. |
12080 |
|
|
12081 |
If you give a prefix argument to @kbd{M-# M-#} (or @kbd{C-c C-c}), |
If you give a prefix argument to @kbd{C-c C-c}, |
12082 |
Calc will not kill the @samp{*Calc Edit*} buffer. You can switch |
Calc will not kill the @samp{*Calc Edit*} buffer. You can switch |
12083 |
back to that buffer and continue editing if you wish. However, you |
back to that buffer and continue editing if you wish. However, you |
12084 |
should understand that if you initiated the edit with @kbd{`}, the |
should understand that if you initiated the edit with @kbd{`}, the |
12085 |
@kbd{M-# M-#} operation will be programmed to replace the top of the |
@kbd{C-c C-c} operation will be programmed to replace the top of the |
12086 |
stack with the new edited value, and it will do this even if you have |
stack with the new edited value, and it will do this even if you have |
12087 |
rearranged the stack in the meanwhile. This is not so much of a problem |
rearranged the stack in the meanwhile. This is not so much of a problem |
12088 |
with other editing commands, though, such as @kbd{s e} |
with other editing commands, though, such as @kbd{s e} |
15262 |
The @kbd{Z S} (@code{calc-edit-user-syntax}) command edits the |
The @kbd{Z S} (@code{calc-edit-user-syntax}) command edits the |
15263 |
syntax table for the current language mode. If you want your |
syntax table for the current language mode. If you want your |
15264 |
syntax to work in any language, define it in the Normal language |
syntax to work in any language, define it in the Normal language |
15265 |
mode. Type @kbd{M-# M-#} to finish editing the syntax table, or |
mode. Type @kbd{C-c C-c} to finish editing the syntax table, or |
15266 |
@kbd{M-# x} to cancel the edit. The @kbd{m m} command saves all |
@kbd{C-x k} to cancel the edit. The @kbd{m m} command saves all |
15267 |
the syntax tables along with the other mode settings; |
the syntax tables along with the other mode settings; |
15268 |
@pxref{General Mode Commands}. |
@pxref{General Mode Commands}. |
15269 |
|
|
21807 |
@xref{Selections with Rewrite Rules}. The rules are stored in |
@xref{Selections with Rewrite Rules}. The rules are stored in |
21808 |
the Calc variable @code{DistribRules}. A convenient way to view |
the Calc variable @code{DistribRules}. A convenient way to view |
21809 |
these rules is to use @kbd{s e} (@code{calc-edit-variable}) which |
these rules is to use @kbd{s e} (@code{calc-edit-variable}) which |
21810 |
displays and edits the stored value of a variable. Press @kbd{M-# M-#} |
displays and edits the stored value of a variable. Press @kbd{C-c C-c} |
21811 |
to return from editing mode; be careful not to make any actual changes |
to return from editing mode; be careful not to make any actual changes |
21812 |
or else you will affect the behavior of future @kbd{j D} commands! |
or else you will affect the behavior of future @kbd{j D} commands! |
21813 |
|
|
23583 |
command to substitute actual values for function calls like @samp{as(3)}. |
command to substitute actual values for function calls like @samp{as(3)}. |
23584 |
|
|
23585 |
The @kbd{s G} (@code{calc-edit-GenCount}) command is a convenient |
The @kbd{s G} (@code{calc-edit-GenCount}) command is a convenient |
23586 |
way to create or edit this variable. Press @kbd{M-# M-#} to finish. |
way to create or edit this variable. Press @kbd{C-c C-c} to finish. |
23587 |
|
|
23588 |
If you have not stored a value in @code{GenCount}, or if the value |
If you have not stored a value in @code{GenCount}, or if the value |
23589 |
in that variable is not a positive integer, the regular |
in that variable is not a positive integer, the regular |
28087 |
or simplifying or evaluating the value. It prompts for the name of |
or simplifying or evaluating the value. It prompts for the name of |
28088 |
the variable to edit. If the variable has no stored value, the |
the variable to edit. If the variable has no stored value, the |
28089 |
editing buffer will start out empty. If the editing buffer is |
editing buffer will start out empty. If the editing buffer is |
28090 |
empty when you press @kbd{M-# M-#} to finish, the variable will |
empty when you press @kbd{C-c C-c} to finish, the variable will |
28091 |
be made void. @xref{Editing Stack Entries}, for a general |
be made void. @xref{Editing Stack Entries}, for a general |
28092 |
description of editing. |
description of editing. |
28093 |
|
|
28934 |
@texline @math{80\times24} |
@texline @math{80\times24} |
28935 |
@infoline 80x24 |
@infoline 80x24 |
28936 |
characters. The graph is displayed in |
characters. The graph is displayed in |
28937 |
an Emacs ``recursive edit''; type @kbd{q} or @kbd{M-# M-#} to exit |
an Emacs ``recursive edit''; type @kbd{q} or @kbd{C-c C-c} to exit |
28938 |
the recursive edit and return to Calc. Note that the @code{dumb} |
the recursive edit and return to Calc. Note that the @code{dumb} |
28939 |
device is present only in GNUPLOT 3.0 and later versions. |
device is present only in GNUPLOT 3.0 and later versions. |
28940 |
|
|
30114 |
The @kbd{M-# `} (@code{calc-embedded-edit}) command edits the |
The @kbd{M-# `} (@code{calc-embedded-edit}) command edits the |
30115 |
embedded formula at the current point as if by @kbd{`} (@code{calc-edit}). |
embedded formula at the current point as if by @kbd{`} (@code{calc-edit}). |
30116 |
Embedded mode does not have to be enabled for this to work. Press |
Embedded mode does not have to be enabled for this to work. Press |
30117 |
@kbd{M-# M-#} to finish the edit, or @kbd{M-# x} to cancel. |
@kbd{C-c C-c} to finish the edit, or @kbd{C-x k} to cancel. |
30118 |
|
|
30119 |
@node Assignments in Embedded Mode, Mode Settings in Embedded Mode, More About Embedded Mode, Embedded Mode |
@node Assignments in Embedded Mode, Mode Settings in Embedded Mode, More About Embedded Mode, Embedded Mode |
30120 |
@section Assignments in Embedded Mode |
@section Assignments in Embedded Mode |
30831 |
command to edit the macro. This command may be found in the |
command to edit the macro. This command may be found in the |
30832 |
@file{macedit} package, a copy of which comes with Calc. It decomposes |
@file{macedit} package, a copy of which comes with Calc. It decomposes |
30833 |
the macro definition into full Emacs command names, like @code{calc-pop} |
the macro definition into full Emacs command names, like @code{calc-pop} |
30834 |
and @code{calc-add}. Type @kbd{M-# M-#} to finish editing and update |
and @code{calc-add}. Type @kbd{C-c C-c} to finish editing and update |
30835 |
the definition stored on the key, or, to cancel the edit, type |
the definition stored on the key, or, to cancel the edit, kill the |
30836 |
@kbd{M-# x}. |
buffer with @kbd{C-x k}. |
30837 |
|
|
30838 |
If you give a negative numeric prefix argument to @kbd{Z E}, the keyboard |
If you give a negative numeric prefix argument to @kbd{Z E}, the keyboard |
30839 |
macro is edited in spelled-out keystroke form. For example, the editing |
macro is edited in spelled-out keystroke form. For example, the editing |
30840 |
buffer might contain the nine characters @w{@samp{1 @key{RET} 2 +}}. When you press |
buffer might contain the nine characters @w{@samp{1 @key{RET} 2 +}}. When you press |
30841 |
@kbd{M-# M-#}, the @code{read-kbd-macro} feature of the @file{macedit} |
@kbd{C-c C-c}, the @code{read-kbd-macro} feature of the @file{macedit} |
30842 |
package is used to reinterpret these key names. The |
package is used to reinterpret these key names. The |
30843 |
notations @code{RET}, @code{LFD}, @code{TAB}, @code{SPC}, @code{DEL}, and |
notations @code{RET}, @code{LFD}, @code{TAB}, @code{SPC}, @code{DEL}, and |
30844 |
@code{NUL} must be written in all uppercase, as must the prefixes @code{C-} |
@code{NUL} must be written in all uppercase, as must the prefixes @code{C-} |
31248 |
|
|
31249 |
The @kbd{Z E} (@code{calc-user-define-edit}) command on a key that has |
The @kbd{Z E} (@code{calc-user-define-edit}) command on a key that has |
31250 |
been defined by a formula uses a variant of the @code{calc-edit} command |
been defined by a formula uses a variant of the @code{calc-edit} command |
31251 |
to edit the defining formula. Press @kbd{M-# M-#} to finish editing and |
to edit the defining formula. Press @kbd{C-c C-c} to finish editing and |
31252 |
store the new formula back in the definition, or @kbd{M-# x} to |
store the new formula back in the definition, or kill the buffer with |
31253 |
|
@kbd{C-x k} to |
31254 |
cancel the edit. (The argument list and other properties of the |
cancel the edit. (The argument list and other properties of the |
31255 |
definition are unchanged; to adjust the argument list, you can use |
definition are unchanged; to adjust the argument list, you can use |
31256 |
@kbd{Z G} to grab the function onto the stack, edit with @kbd{`}, and |
@kbd{Z G} to grab the function onto the stack, edit with @kbd{`}, and |
35724 |
|
|
35725 |
@c 30 |
@c 30 |
35726 |
@item |
@item |
35727 |
Editing occurs in a separate buffer. Press @kbd{M-# M-#} (or @kbd{C-c C-c}, |
Editing occurs in a separate buffer. Press @kbd{C-c C-c} (or |
35728 |
@key{LFD}, or in some cases @key{RET}) to finish the edit, or press |
@key{LFD}, or in some cases @key{RET}) to finish the edit, or kill the |
35729 |
@kbd{M-# x} to cancel the edit. The @key{LFD} key prevents evaluation |
buffer with @kbd{C-x k} to cancel the edit. The @key{LFD} key prevents evaluation |
35730 |
of the result of the edit. |
of the result of the edit. |
35731 |
|
|
35732 |
@c 31 |
@c 31 |