Next: , Previous: , Up: Running REDUCE in an Emacs window   [Contents][Index]


14.6 Inputting code fragments to REDUCE

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.

Command: reduce-eval-last-statement

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.

Command: reduce-eval-region

This command sends the code in the selected region to REDUCE.

Command: reduce-eval-proc

This command sends the procedure definition before or containing point to REDUCE.