103 lines
41 KiB
Plaintext
103 lines
41 KiB
Plaintext
1
|
||
|
||
Medley for the Sun User's Guide, Release 2.0
|
||
1
|
||
|
||
Medley for the Sun User's Guide, Release 2.0
|
||
4. USING MEDLEY ON THE SUN WORKSTATION
|
||
1
|
||
|
||
4. USING MEDLEY ON THE SUN WORKSTATION
|
||
1
|
||
|
||
|
||
4. USING MEDLEY ON THE SUN WORKSTATION
|
||
6
|
||
|
||
Once the system administrator has installed Medley software on the Sun, Lisp users can customize their Medley Lisp environments. This chapter provides basic information to get you started in the Medley environment on a Sun Workstation.
|
||
Setting Up a Site Init File
|
||
1
|
||
|
||
The users at a given site generally print to the same printers, load library files from the same directory, and so on. Medley uses variables to supply defaults for such things. The obvious place to set these variables is in one common initialization file. That is the Site Init File's role.
|
||
The Site Init File is a file of Lisp expressions that is loaded when you start Medley with a fresh LISP.SYSOUT.
|
||
The following Lisp symbols(SYMBOLS NIL Symbols NIL NIL 21 SUBTEXT set% in% site% initialization% file)(LISP% SYMBOLS NIL Lisp% symbols NIL NIL 21 SUBTEXT set% in% site% initialization% file) should be set in your site init file:
|
||
IL:USERGREETFILES(USERGREETFILES (Variable) NIL NIL NIL 21) [Variable]
|
||
A list of templates to search for the place where individuals should find their personal init files(SITE% INITIALIZATION% FILE NIL site% initialization% file NIL NIL 21 SUBTEXT how% to% find). If this is not set in the site init file, no personal init file is used. The list should be similar to the following:
|
||
(({file-server}< USER >LISP>INIT.LCOM)
|
||
({file-server}< USER >LISP>INIT)
|
||
({file-server}< USER >INIT.LISP))
|
||
IL:DISPLAYFONTDIRECTORIES(DISPLAYFONTDIRECTORIES (Variable) NIL NIL NIL 21) [Variable]
|
||
A list of directories to search when the system is looking for display fonts(DISPLAY% FONTS NIL display% fonts NIL NIL 21 SUBTEXT how% to% find). The site initialization file should set it to a list of strings, each containing a complete pathname for font files, e.g., ("{UNIX}/usr/local/lde/fonts/display/
|
||
presentation/").
|
||
IL:INTERPRESSFONTDIRECTORIES(INTERPRESSFONTDIRECTORIES (Variable) NIL NIL NIL 21) [Variable]
|
||
A list of directories to search when the system is looking for Interpress font(FONT NIL Fonts NIL NIL 21 SUBTEXT InterPress)(INTERPRESS% FONT NIL InterPress% fonts NIL NIL 21 SUBTEXT finding% ) widths.
|
||
IL:DIRECTORIES(DIRECTORIES (Variable) NIL NIL NIL 21) [Variable]
|
||
The list of paths to search for files(FILES NIL Files NIL NIL 21 SUBTEXT finding) that are not found in the current (Lisp) connected directory.
|
||
IL:LISPUSERSDIRECTORIES(LISPUSERSDIRECTORIES (Variable) NIL NIL NIL 21) [Variable]
|
||
The list of paths to search for library (LIBRARY% NIL Library% files% NIL NIL 21 SUBTEXT finding)and LispUsers' files(FILES NIL Files NIL NIL 21 SUBTEXT Lisp% User)(FILES NIL Files NIL NIL 21 SUBTEXT library)(LISPUSERS'% MODULES NIL LispUsers'% Modules NIL NIL 21 SUBTEXT finding). Remember that every path in this list should also be in DIRECTORIES.
|
||
IL:DEFAULTPRINTINGHOST(DEFAULTPRINTINGHOST (Variable) NIL NIL NIL 21) [Variable]
|
||
A list of names of default printers(PRINTERS NIL Printers NIL NIL 21 SUBNAME default).
|
||
IL:DEFAULTPRINTERTYPE(DEFAULTPRINTERTYPE (Variable) NIL NIL NIL 21) [Variable]
|
||
The default printer type, e.g., POSTSCRIPT.
|
||
XCL:*LONG-SITE-NAME*(*LONG-SITE-NAME* (Variable) NIL NIL NIL 22) [Variable]
|
||
The value of the function XCL:LONG-SITE-NAME(LONG-SITE-NAME (Function) NIL NIL NIL 22), e.g., "Frobnitz, Baz and Lispers, Incorporated."
|
||
XCL:*SHORT-SITE-NAME*(*SHORT-SITE-NAME* (Variable) NIL NIL NIL 22) [Variable]
|
||
The value of the Common Lisp function XCL:SHORT-SITE-NAME(SHORT-SITE-NAME (Function) NIL NIL NIL 22), e.g., "Frobco".
|
||
IL:\BeginDST(\BeginDST (Variable) NIL NIL NIL 22) [Variable]
|
||
The day of the year on or before which Daylight Savings Time(DAYLIGHT% SAVINGS% TIME NIL Daylight% Savings% Time NIL NIL 22 SUBTEXT setting% values% for) takes effect (i.e., the Sunday on or immediately preceding this day). Must be set to 98 in the USA if Lisp is to perform time computations correctly (subject, of course, to future legislation). If you are in a region where Daylight Savings Time is not observed, set the value to 367.
|
||
IL:\EndDST(\ENDDST (Variable) \EndDST NIL NIL 22) [Variable]
|
||
The day of the year on or before which Daylight Savings Time ends. Must be set to 305 in the USA.
|
||
Setting Up a Personal Init File
|
||
1
|
||
|
||
Your personal init(PERSONAL% INIT% FILE NIL Personal% init% file NIL NIL 22 SUBTEXT set% up) file keeps track of the location of your home directory and windows layout; it also remembers which library files you always load.
|
||
Your personal init file is a file of Lisp expressions that is loaded and run after the site init file. You can create it either as a text file, or have Medley's File Manager help you.
|
||
Your initialization file is normally ~/INIT.LCOM
|
||
Saving Your State
|
||
1
|
||
|
||
On the Sun, lde(LDE NIL lde NIL NIL 22) is an ordinary UNIX program that allocates a 45 MB data area, reads into that area several megabytes of data (the sysout), and modifies it there. Under UNIX, that program's data requirements (which include the sysout) are handled by UNIX; all Medley does is modify in "memory" a copy of your original sysout file. UNIX, transparently to Medley, handles all real memory swapping. This has several consequences related to starting, saving, and restarting sysouts.
|
||
On Xerox workstations, the virtual memory partition is updated periodically and used to store new pages as they are allocated or flushed from the real memory of the machine. For example, LOGOUT(LOGOUT (Function) NIL NIL NIL 22) and SAVEVM(SAVEVM (Function) NIL NIL NIL 22) write out only those pages of data which are different from what might already be in the virtual memory file.
|
||
On the Sun Workstation, however, the contents of virtual memory are only written to a file by an explicit call to SAVEVM, LOGOUT, SYSOUT, or MAKESYS. This file is an ordinary SunOS file (normally ~/lisp.virtualmem(~/LISP.VIRTUALMEM NIL ~/lisp.virtualmem NIL NIL 22)). The entire virtual memory, which may be many megabytes of data, is written out there.
|
||
On the Sun Workstation, starting anew from a saved virtual memory file requires reading it into memory. On the Xerox workstation, it is necessary to first copy the saved sysout to the virtual memory file and then read it in. Thus, restarting a saved sysout or virtual memory file is significantly faster on a Sun Workstation.
|
||
The file that LOGOUT and SAVEVM writes is normally ~/lisp.virtualmem (i.e., the file lisp.virtualmem on the user's home directory). However, the environment variable LDEDESTSYSOUT(LDEDESTSYSOUT NIL NIL NIL NIL 23) can be used to override this default. For example, you might want to keep virtual memory images on /user/local. During a demonstration where you do not want the memory image saved, you can reset LDEDESTSYSOUT to /dev/null. You can use the C-Shell command setenv(SETENV (UNIX Command) setenv NIL NIL 23) to do this, e.g.:
|
||
prompt% setenv LDEDESTSYSOUT "/dev/null"
|
||
Cursor tracking interferes with writing out the screen bitmap as part of the Medley memory image. For this reason, Medley takes the cursor down before saving a virtual memory image as part of LOGOUT, SAVEVM, SYSOUT, or MAKESYS. When this happens, the message
|
||
Saving VMem, taking mouse down
|
||
appears in the prompt window, and cursor tracking is disabled.
|
||
Because the virtual memory file need not already exist to run Medley, the functions LOGOUT and SAVEVM can signal the following file errors:
|
||
File-System-Resources-Exceeded
|
||
Protection-Violation
|
||
File-Wont-Open
|
||
Even if some errors occur while saving a virtual memory, the old destination file is safe. Saving does not overwrite the old virtual memory file. The saving virtual memory file is named with "<22><> |