When developing REDUCE code, it may be convenient to be able to test
fragments by inputting them into REDUCE. The following commands are
intended to be used in a REDUCE mode buffer to send code to a REDUCE
process buffer. They all use switch-to-reduce
to decide
where to send the code. With a prefix argument, the commands also
explicitly switch to the REDUCE process window.
The following key bindings are added to REDUCE mode:
This command sends the code between the beginning of the statement before point and point to REDUCE. The assumption is that point is at the end of a REDUCE statement, but this is not checked so it is possible to send an incomplete statement. (This key binding follows the Emacs convention and is available in both REDUCE Edit and Run modes.)
This command sends the current line of code to REDUCE. A prefix argument means also switch to the REDUCE window. (This key binding is available in both REDUCE Edit and Run modes.)
This command sends the procedure definition ending after point to REDUCE. (The C-M-x key binding follows the Emacs convention.)
This command sends the code in the selected region to REDUCE.