Chapter 3

Interface Reference

3.1  Menus

3.1.1  File

3.1.2  Edit

All Edit menu items operate on either the definitions or interactions window, depending on the location of the selection or blinking caret. Each window maintains its own Undo and Redo history.

3.1.3  Show

One each of the following show/hide pairs of menu items appears at any time.

Note: whenever a program is executed, the interactions window is made visible if it is hidden.

3.1.4  Language

In addition to the above menus, there is a menu item for each teachpack that clears only that one teachpack.

3.1.5  Scheme

3.1.6  Special

3.1.7  Windows

Additionally, after the above menu items, this menu contains an entry for each window in DrScheme. Selecting a menu item brings the corresponding window to the front.

3.1.8  Help

3.2  Preferences

The preferences dialog comprises several panels:

3.3  Keyboard Shortcuts

Most key presses simply insert a character into the editor (``a'', ``3'', ``('', etc.). Other keys and key combinations act as keyboard shortcuts that move the blinking caret, delete a line, copy the selection, etc. Keyboard shortcuts are usually trigger by key combinations using the Control, Meta, or Command key.

C-key = This means press the Control key, hold it down and then press key and then release them both. For example: C-e (Control-E) moves the blinking caret to the end of the current line.

M-key = Same as C-key, except with the Meta key. Depending on your keyboard, Meta may be called ``Left'', ``Right'' or have a diamond symbol, but it's usually on the bottom row next to the space bar. M-key can also be performed as a two-character sequence: first, strike and release the Escape key, then strike key. Under Windows and Mac OS, Meta is only available through the Escape key.

DEL = The Delete key.

SPACE = The Space bar.

Note: On most keyboards, ``<'' and ``>'' are shifted characters. So, to get M->, you actually have to type Meta-Shift->. That is, press and hold down both the Meta and Shift keys, and then strike ``>''.

Note: Many of the key bindings can also be done with menu items.

Under Windows, some of these keybindings are actually standard menu items. Those keybindings will behave according to the menus, unless the Enable keybindings in menus preference is unchecked.

If you are most familiar with Emacs-style key bindings, you should uncheck the Enable keybindings in menus preference. Many of the keybindings below are inspired by Emacs.

3.3.1  Moving Around

3.3.2  Editing Operations

3.3.3  File Operations

3.3.4  Searching

3.3.5  Miscellaneous

3.3.6  Interactions

The interactions window has all of the same keyboard shortcuts as the definitions window plus a few more:

3.4  DrScheme Files

3.4.1  Program Files

The standard extension for a Scheme program file is .scm. The extensions .ss and .sch are also acceptable.

DrScheme's editor can saves a program file in two different formats:

3.4.2  Backup and Autosave Files

When you modify an existing file in DrScheme and save it, DrScheme copies the old version of the file to a special backup file if no backup file exists. The backup file is saved in the same directory as the original file, and the backup file's name is generated from the original file's name:

When a file in an active DrScheme editor is modified but not saved, DrScheme saves the file to a special autosave file after five minutes (in case of a power failure or catastrophic error). If the file is later saved, or if the user exists DrScheme without saving the file, the autosave file is removed. The autosave file is saved in the same directory as the original file, and the autosave file's name is generated from the original file's name:

3.4.3  Preference Files

On start-up, DrScheme reads configuration information from a preferences file. The name and location of the preferences file depends on the platform and user:2

A lock file is used while modifying the preferences file, in the same directory as the preferences file. Under Windows and Mac OS Classic, the lock file is named .LOCKplt-prefs.ss, and on other platforms, it is .LOCK.plt-prefs.ss.

If the user-specific preferences file does not exist, and the file plt-prefs.ss in the defaults collection does exist, then it is used for the initial preference settings. (See Library Collections and MzLib for more information about collections.) This file thus allows site-specific configuration for preference defaults. To set up such a configuration, start DrScheme and configure the preferences to your liking. Then, exit DrScheme and copy your preferences file into the defaults collection as plt-prefs.ss. Afterward, users have no preferences will get the preference settings you chose.


2 The MzScheme procedure find-system-path returns the platform-specific path when given the argument 'pref-file.