Previous: Run mode key bindings and menu, Up: Running REDUCE in an Emacs window [Contents][Index]
REDUCE Run mode provides a small amount of customization and the following options can be changed using the standard Emacs customization facilities. The main REDUCE customization group is called “REDUCE”, under which REDUCE Run mode provides a sub-group “REDUCE Run” that allows the following options to be customized.
The option reduce-run-commands
must be set correctly
otherwise REDUCE will not run correctly. The settings of other
options are less critical.
REDUCE Run inherits from comint, so comint options also affects this
mode. The comint
customization group can be accessed via a
link in the REDUCE Run customization group.
autoload-reduce-run
¶Whether, and if so how, to autoload REDUCE Run mode. Loading it is
necessary only if you plan to run REDUCE within REDUCE IDE. If the
value is t
then load REDUCE Run mode after reduce-mode
has loaded; if it is menu
(the default) then display a Run
REDUCE menu stub that can load REDUCE Run mode; if it is nil
then do nothing.
reduce-input-filter
¶Default value "\\`\\([ \t;$]*\\|[ \t]*.[ \t]*\\)\\'"
. What not
to save on REDUCE Run mode’s input history. The value is a regular
expression (regexp). The default matches any combination of zero or
more whitespace characters and/or statement terminators, or any single
character (e.g. y or n) possibly surrounded by
whitespace.
reduce-packages-directory
¶Absolute pathname of the directory containing REDUCE packages, or nil. This option should be set automatically when REDUCE Run mode loads. If the directory cannot be found then this option will be set to nil. You can customize this variable to override the default setting.
reduce-run-mswin-drives
¶On Microsoft Windows, this is the list of drives to be searched for
REDUCE, which defaults to all local drives, e.g. ("C:" "D:" "E:"
"F:")
. It is undefined on other platforms and is used only to set
the default value of reduce-run-installation-directory
.
reduce-run-autostart
¶Default value t
. If non-nil then all commands that require a
REDUCE process will automatically start a new one if none is already
running.
reduce-run-commands
¶Default value (("CSL" . "redcsl --nogui") ("PSL" . "redpsl"))
except on Microsoft Windows. The value of this variable is an
association list with one element for each version of REDUCE, by
default CSL and PSL. Each element is a “dotted pair” of strings, of
which the first defaults to either "CSL" or "PSL" and the second is
the command to run that version of REDUCE using a command-line
interface. This can include any required options, as illustrated
above by the default value for CSL REDUCE.
The command can be either the command name, as illustrated above, or it can be a full path name, which can contain spaces. (But spaces are not allowed in the command options.) If command names are used then those commands must be on your search path, which should be the case automatically on platforms other than Microsoft Windows.
On Microsoft Windows, REDUCE Run mode uses full pathnames by default and moreover it uses a separate batch file to run PSL REDUCE, as described above (see Running REDUCE on Microsoft Windows).
reduce-run-installation-directory
¶Default value X:/Program Files/Reduce/ on Microsoft Windows, where X is a letter A-Z, and /usr/share/reduce/ on other platforms. Absolute root directory of the REDUCE installation, or nil if not set. It is the directory containing the packages directory and, on Microsoft Windows, the bin directory containing the user-executable batch files. On Microsoft Windows, REDUCE Run mode attempts to determine the correct value for this variable automatically. Note that you can complete the directory name using M-TAB.
reduce-run-load-hook
¶Default value nil
. The hook run when REDUCE Run mode is
loaded. It is a good place to put key bindings.
reduce-run-mode-hook
¶Default value nil
. The main hook for customizing REDUCE Run
mode.
reduce-run-multiple
¶Default value t
. If non-nil then commands that explicitly
start REDUCE will always start a new REDUCE process in a new distinct
buffer, even if REDUCE is already running. Otherwise, they will
re-use any appropriate running REDUCE process.
reduce-run-prompt
¶Default value "^\\(?:[0-9]+[:*] \\)+"
. The regexp to recognise
prompts in REDUCE Run mode. This variable is used to initialize
comint-prompt-regexp
in the REDUCE run buffer.
reduce-source-modes
¶Default value (reduce-mode)
. Used to determine if a buffer
contains REDUCE source code. If a file is loaded into a buffer that is
in one of these major modes then it is considered to be a REDUCE source
file by reduce-input-file
and reduce-fasl-file
. Used by
these commands to determine defaults.
Previous: Run mode key bindings and menu, Up: Running REDUCE in an Emacs window [Contents][Index]