955 lines
284 KiB
Plaintext
955 lines
284 KiB
Plaintext
Copyright (c) 1986 Xerox Corporation. All rights reserved.
|
||
|
||
2
|
||
|
||
16.19 Time Stamps
|
||
1
|
||
|
||
Whenever a function is edited, and changes were made, the function is time-stamped (by EDITE), which consists of inserting a comment of the form (* USERS-INITIALS DATE). USERS-INITIALS is the value of the variable INITIALS. After greeting (("Greeting" . TERM)), the function SETINITIALS is called. SETINITIALS searches INITIALSLST, a list of elements of the form (USERNAME . INITIALS) or (USERNAME FIRSTNAME INITIALS). If the user's name is found, INITIALS is set accordingly. If the user's name is not found on INITIALSLST, INITIALS is set to the value of DEFAULTINITIALS, initially edited:. Thus, the default is to always time stamp. To suppress time stamping, the user must either include an entry of the form (USERNAME) on INITIALSLST, or set DEFAULTINITIALS to NIL before greeting, i.e. in his user profile, or else, after greeting, explicitly set INITIALS to NIL.
|
||
If the user wishes his functions to be time stamped with his initials when edited, he should include a file package command command of the form (ADDVARS (INITIALSLST (USERNAME . INITIALS))) in the user's INIT.LISP file (see ("GREET" . Function)).
|
||
The following three functions may be of use for specialized applications with respect to time-stamping: (FIXEDITDATE EXPR) which, given a lambda expression, inserts or smashes a time-stamp comment; (EDITDATE? COMMENT) which returns T if COMMENT is a time stamp; and (EDITDATE OLDATE INITLS) which returns a new time-stamp comment. If OLDATE is a time-stamp comment, it will be reused.
|
||
|