12.2 Installation of REDUCE Run mode

It is probably best to use the GNU Emacs package manager to install the latest REDUCE IDE package; Installation of REDUCE IDE. None of the manual installation described below is then required. But if you want to install by hand, or understand the details of the installation process, then read on.

REDUCE Run mode requires the library reduce-mode both when it is compiled and when it is loaded. It tries quite hard to locate this library, but normally it should be in the same directory as reduce-run.

Byte-compile the file reduce-run.el, put the result somewhere in your load-path, and put the following in your .emacs file:

(autoload 'run-reduce "reduce-run" "Run a REDUCE process" t)

To control access to the features of REDUCE Run mode from REDUCE mode you can customize the option reduce-run-autoload. See REDUCE Run mode customization.

You can customize the values of the options reduce-root-dir-file-name and reduce-run-commands (see Running, rerunning and switching to REDUCE) if the default values are not correct, and/or to add commands to run additional versions of REDUCE, such as those built directly from the Subversion repository or REDUCE on Common Lisp.

Incompatible Changes in Versions 1.12 and 1.13

The option reduce-run-commands has been changed so that a REDUCE command is a list of strings rather than a single string, which allows spaces in both the command and its arguments. Run mode automatically updates a saved value to the new structure and offers to edit and/or save it.

The option reduce-run-installation-directory has been renamed to reduce-root-dir-file-name and become a directory file name rather than a directory name, i.e. the final directory separator has been removed. This makes it suitable as the default value of the environment variable reduce.

The option reduce-run-MSWin-drives has been removed and its use incorporated into the definition of reduce-root-dir-file-name, without using any external programs.

There is now a facility to set the root directory separately for each command in reduce-run-commands; if unset then it defaults to the value of reduce-root-dir-file-name. The environment variable reduce is now always set to the local root directory, which is also used to find REDUCE packages. Hence, the option reduce-packages-directory is no longer used.

The shorthand $reduce is replaced at the start of strings (other than Name) in reduce-run-commands with the local root directory.

The special support for PSL REDUCE has been removed since it is not needed when REDUCE is run directly and is no longer needed from REDUCE revision 6726 when REDUCE is run using a batch file. If you had customized reduce-run-commands then you may need to erase the customization (at least for PSL REDUCE) and then re-customize it.