1 ; initialization file for XLISP-STAT 2.1
3 (defun xlisp::small-machine-p
() nil
)
4 (export 'xlisp
::small-machine-p
'xlisp
)
10 ; disable strict keyword checking
11 (setf *strict-keywords
* nil
)
13 ; restore old printing
14 ;(setf *float-format* "%g")
16 ; enable macro displacement and setf simplification (both a bit risky)
17 (setf xlisp
::*displace-macros
* t
)
18 (setf xlisp
::*simplify-setf
* t
)
28 #+unix
(load "cmpload")
30 ; initialize to disable breaks and trace back
31 ;(setf *breakenable* t)
32 ;(setf *tracenable* t)
33 ;(setf *tracelimit* 1)
34 ;(setf *baktrace-print-arguments* nil)
35 (setf *interrupt-action
* #'top-level
)
36 (setf *debug-print-length
* 4)
37 (setf *debug-print-level
* 3)
39 (setf xlisp
::*default-handler
*
41 (when (and (null *breakenable
*) (typep c
'error
))
42 (let ((*print-readably
* nil
))
43 (format *error-output
* "~&Error: ~a~%" c
)
44 (let ((f (xlisp::debug-fun
)))
45 (if f
(format *error-output
* "Happened in: ~s~%" f
))))
48 ; load xlispstat objects and related functions
52 #+msdos
(require "dde")
54 ; load statistics and graphics functions
63 (defvar *help-file-name
*)
64 (defvar *help-stream
*)
65 (defvar *line-length
* 78 "Line length used in printing help messages")
66 (defvar *help-loaded
* nil
)
68 (defun initialize-system ()
69 (setf *load-pathname-defaults
*
71 (merge-pathnames (make-pathname :directory
72 '(:relative
"Autoload"))
74 (setf *help-file-name
* (merge-pathnames "xlisp.hlp" *default-path
*))
77 (when (system-has-windows)
78 (pushnew :windows
*features
*)
79 (pushnew :dialogs
*features
*)
80 (if (screen-has-color) (pushnew :color
*features
*))
81 (if (small-machine-p) (pushnew :small-machine
*features
*)))
83 (setf *help-stream
* (open *help-file-name
* :if-does-not-exist nil
))
84 ;;(setf *help-loaded* nil)
86 ;; install macintosh listener and menu bar
89 (setq *listener
* (send listener-proto
:new
))
90 (set-menu-bar *standard-menu-bar
*))
92 ;; install MS Windows menu bar
94 (if (system-has-windows)
95 (set-menu-bar *standard-menu-bar
*))
97 ;; load autoload information
98 (setf *condition-hook
* 'condition-hook
)
99 (mapc #'register-autoloads
(create-autoload-path))
101 ;; initialize module search path
102 (setf *module-path
* (create-module-path))
104 ;; load user initialization file
105 (let ((*package
* (find-package "USER")))
106 (load "statinit" :if-does-not-exist nil
)))
108 (setf *startup-functions
* '(use-conditions initialize-system
))