annotate lisp/ilisp/ilisp-def.el @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children b82b59fe008d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; -*- Mode: Emacs-Lisp -*-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;;; ilisp-def.el --
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;;; This file is part of ILISP.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;;; Version: 5.7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;; Copyright (C) 1990, 1991, 1992, 1993 Chris McConnell
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;; 1993, 1994 Ivan Vasquez
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;; 1994, 1995 Marco Antoniotti and Rick Busdiecker
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;; Other authors' names for which this Copyright notice also holds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; may appear later in this file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;; Send mail to 'ilisp-request@lehman.com' to be included in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;; ILISP mailing list. 'ilisp@lehman.com' is the general ILISP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;; mailing list were bugs and improvements are discussed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;; ILISP is freely redistributable under the terms found in the file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;; COPYING.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;; ILISP defvar's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;;%Variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;;%%Deflocal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 (defvar ilisp-locals '(comint-prompt-regexp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 input-ring-size
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 comint-get-old-input
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 comint-input-sentinel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 comint-input-filter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 comint-input-sender
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 comint-eol-on-send
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 comint-send-newline
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 comint-always-scroll
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 comint-fix-error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 comint-continue
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 comint-interrupt-regexp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 comint-error-regexp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 comint-output-filter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 comint-interrupt-start
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 comint-handler
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 comint-update-status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 comint-prompt-status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 comint-abort-hook)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 "List of ilisp local variables.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 (defun lisp-deflocal (local)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (if (not (memq local ilisp-locals))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (setq ilisp-locals (cons local ilisp-locals))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 (defmacro deflocal (variable default &optional documentation)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 "Define an ilisp local variable."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 (` (progn (lisp-deflocal '(, variable))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 (defvar (, variable) (, default) (, documentation)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ;;;%%Simple customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (defvar ilisp-prefix "\C-z" "Prefix sequence for ilisp commands.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (deflocal ilisp-program nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 "*Program and arguments for invoking an inferior LISP. The program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 can be an rsh to run on a remote machine. If there is not a common
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 file system, the interface files will be sent down the pipe instead.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 The value of this variable is set from DIALECT-program, or inherited
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 from a less specific dialect if DIALECT-program is nil.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (defvar ilisp-motd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 "ILISP V%s Use M-x ilisp-bug for problems and suggestions."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 "*Message of the day format string for ILISP given VERSION. To
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 prevent any message from being printed, set this to nil.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 (defvar lisp-wait-p nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 "*T if LISP eval/compile commands should wait for the result. A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 minus prefix to the command will change the sense of this switch for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 just the next command.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (defvar lisp-no-popper 'message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 "*T if you want all output in the inferior LISP rather than in a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 pop-up window. 'message if you want output of one line to go to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 message window (or to the inferior LISP if more). You should probably
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 also set comint-always-scroll to T as well so that output is always visible.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 (defvar lisp-show-status t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 "*Set to nil to stop showing process status in lisp-mode buffers.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (defvar ilisp-prefix-match nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 "*Set to T to match only as a prefix when completing through the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 inferior LISP. This will speed up completion, but you no longer get
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 partial completion.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 (deflocal ilisp-filter-regexp nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 "*What not to save on an inferior LISP's input history.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 Input matching this regexp is not saved on the input history in ilisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (deflocal ilisp-filter-length 3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 "*Do not save strings less than this in the command history.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (deflocal ilisp-other-prompt nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 "*Regexp to recognise prompts in the inferior LISP that are prompts
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 of non-(read/eval/print) top-levels so that bol-ilisp skips them.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (deflocal ilisp-raw-echo nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 "*Set this to T to cause echoing in raw keyboard mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 (deflocal ilisp-load-no-compile-query nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 "*Set this to T to stop load querying about compile.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 ;;;%%%Hooks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 (defvar ilisp-site-hook nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 "Hook for site customization of ilisp mode when it is loaded.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 (defvar ilisp-load-hook '()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 "Hook for customizing ilisp mode when it is loaded.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 (defvar ilisp-mode-hook '()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 "Hook for customizing ilisp mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (deflocal ilisp-init-hook nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 "Hook of functions to call on first prompt in inferior LISP.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 ;;;%%Advanced customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 ;;;%%%Commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 (deflocal ilisp-reset nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 "String for resetting the top-level of the inferior LISP.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 (deflocal ilisp-load-or-send-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 "Format string for loading BINARY if possible otherwise loading
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 FILE. If you can't load either, return NIL.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (deflocal ilisp-package-regexp nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 "Regular expression for finding a package specification in a buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 The entire sexp starting with this pattern will be passed to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 ilisp-package-command to find the package.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (deflocal ilisp-package-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 "Format string to find the package given PACKAGE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 (deflocal ilisp-package-name-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 "Format string to return the name of the current package.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (deflocal ilisp-in-package-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 "Format string to set the package given PACKAGE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 (deflocal ilisp-last-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 "Format string for getting the last returned value.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 (deflocal ilisp-save-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 "Format string for saving result history given FORM.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 (deflocal ilisp-restore-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 "Format string for restoring result history.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (deflocal ilisp-block-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 "Format string for grouping FORMS into one.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 (deflocal ilisp-eval-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 "Format string for evaluating FORM in PACKAGE from FILE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 (deflocal ilisp-defvar-regexp nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 "Regular expression for identifying a defvar form.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 (deflocal ilisp-defvar-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 "Format string for re-evaluating DEFVAR in PACKAGE from FILE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 (deflocal ilisp-describe-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 "Format string for describing FORM in PACKAGE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 (deflocal ilisp-compile-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 "Format string for compiling FORM in PACKAGE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 (deflocal ilisp-inspect-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 "Format string for inspecting FORM in PACKAGE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 (deflocal ilisp-arglist-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 "Format string for arglist of SYMBOL in PACKAGE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 (deflocal ilisp-documentation-types nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 "((\"type\") ...) possible LISP documentation types.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 (deflocal ilisp-documentation-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 "Format string for documentation given SYMBOL in PACKAGE and TYPE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 (deflocal ilisp-macroexpand-1-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 "Format string for top-level macroexpand given FORM and PACKAGE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 (deflocal ilisp-macroexpand-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 "Format string for macroexpand given FORM and PACKAGE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 (deflocal ilisp-complete-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 "Format string for finding possibly matching symbols given SYMBOL,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 PACKAGE, FUNCTIONP, EXTERNALP and PARTIAL-MATCHP. It should print
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 ((string) (string) ...).")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 (deflocal ilisp-callers-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 "Format for finding the callers of SYMBOL in PACKAGE. The function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 should print out callers with one per line.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 (deflocal ilisp-trace-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 "Format for tracing SYMBOL in PACKAGE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 (deflocal ilisp-untrace-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 "Format for untracing SYMBOL in PACKAGE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 (deflocal ilisp-directory-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 "Format for getting default DIRECTORY.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 (deflocal ilisp-set-directory-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 "Format for setting default DIRECTORY.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 (deflocal ilisp-binary-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 "Command to return the extension for binary files.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 (deflocal ilisp-binary-extension nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 "*The extension to use for LISP binaries. If there is an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 ilisp-binary-command, this string will be determined at initilization time.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 (deflocal ilisp-init-binary-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 "Command to return the extension for initialization binary files.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 (deflocal ilisp-init-binary-extension nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 "The extension for initialization binary files. If there is an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 ilisp-init-binary-command, this string will be determined at
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 initilization time.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 (deflocal ilisp-load-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 "Format string for loading a file in LISP given FILE.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 (deflocal ilisp-compile-file-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 "Format string for compiling a file in LISP given FILE and EXTENSION.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 ;;;%%%%Source
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 (deflocal ilisp-source-types nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 "Alist of strings for source types. The strings can be either
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 symbols or list expressions since the input accepts symbols or open
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 ended lists as type specifiers.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 (deflocal ilisp-find-source-command nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 "Format string for finding the source file that defined SYMBOL in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 PACKAGE. It should return NIL if no source is found.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 (deflocal ilisp-locator nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 "Function \(SYMBOL TYPE FIRST-P BACK-P) that finds the next SYMBOL TYPE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 definition in the current buffer. FIRST-P is T the first time it is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 called in a buffer. BACK-P is T to move backwards.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 (deflocal ilisp-calls-locator nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 "Function \(SYMBOL TYPE FIRST-P BACK-P ) that finds calls to SYMBOL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 in the current buffer. FIRST-P is T the first time it is called in a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 buffer. BACK-P is T to move backwards.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 (deflocal ilisp-source-directory-fixup-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 "*An alist of (REGEXP . FIXUP-FUNCTION) which will be applied to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 lists of source filenames to be used with edit-definitions-list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 FIXUP-FUNCTION takes no arguments and should use replace-match to fix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 the filenames.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 ;;;%%%Misc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 (deflocal ilisp-use-map nil "Keymap to use in ILISP mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 (defvar ilisp-bugs-to "ilisp@lehman.com" "Who to send bug reports to.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 (defvar ilisp-modes '(ilisp-mode) "List of all inferior ilisp modes.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 (defvar lisp-source-modes '(lisp-mode scheme-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 "Used to determine if a buffer contains Lisp source code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 If it's loaded into a buffer that is in one of these major modes, it's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 considered a lisp source file by find-file-lisp, load-file-lisp and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 compile-file-lisp. Used by these commands to determine defaults.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 (deflocal ilisp-no-newline nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 "Set to T to stop ilisp from inserting a newline after a command.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 (deflocal ilisp-error-filter nil "Function to filter error output.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 (deflocal ilisp-error-regexp nil "Regular expression to match error.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 (deflocal ilisp-symbol-delimiters nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 "Delimiters found around symbols.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 ;;;%%Program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 (defvar ilisp-completion-map nil "Keymap for reading ilisp readers.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 (defvar ilisp-epoch-running (and (boundp 'epoch::version) epoch::version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 "Non-nil if epoch is running.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 (defvar ilisp-version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 "5.7" ;; ILISP-VERSION marker
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 "Interface version.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 (defvar ilisp-directory nil "The directory that ilisp is found in.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 (defvar ilisp-mode-map nil "Key map for ILISP.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 (defvar ilisp-raw-map nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 "Keyboard map for sending characters directly to the inferior LISP.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 (defvar ilisp-raw-message "Raw keyboard mode until C-g"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 "Message for how to stop raw mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 (defvar ilisp-buffer nil "Name of selected ilisp buffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 (defvar ilisp-status nil "Status string for selected ilisp buffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 (defvar ilisp-buffers nil "List of ILISP buffers.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 (defvar ilisp-dialects nil "List of ILISP dialects.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 (deflocal ilisp-load-inits nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 "Alist of dialect files to load when initializing an inferior LISP.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 By default the file will be loaded from the ilisp-directory.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 ;;; This is useful to have a clause in ilisp code like:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 ;;; (if (memq 'allegro (ilisp-value 'ilisp-dialect))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 ;;; allegro-code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 ;;; normal-code)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 (deflocal ilisp-dialect nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 "List of the dialects that defined the current inferior LISP.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 (defvar ilisp-initialized nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 "List of buffer names that have been initialized.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 (deflocal ilisp-initializing nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 "Set to T while waiting for inferior LISP to get initialized.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 (deflocal ilisp-load-files nil "List of files being loaded.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 (defvar lisp-changes nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 "List of markers for changed forms.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 (deflocal ilisp-pending-changes nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 "List of changes that are pending, but have not been confirmed yet.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 ;;;%%%Completion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 ;;; Dynamically bound variables for controlling reading
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 (defvar ilisp-complete nil "T if in minibuffer completion mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 (defvar ilisp-no-complete nil "T if incomplete symbols are allowed.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 (defvar ilisp-table nil "Completion table for ilisp readers.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 (defvar ilisp-paren nil "T if paren is allowed in ilisp readers.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 (defvar ilisp-completion-package nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 "Package of buffer requesting completion.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 (defvar ilisp-completion-function-p nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 "T if only symbols with function values are allowed.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 ;;; State variables for ilisp reading
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 (defvar ilisp-mini-prefix nil "Package and qualification from minibuffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 (defvar ilisp-original nil "Original string for ilisp completion.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 (defvar ilisp-original-function-p nil "Function-p for ilisp completion.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 (defvar ilisp-original-table nil "Completion table for ilisp-original.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 ;;;%Buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 ;;;%Packages
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 (defvar buffer-package 'not-yet-computed "Cached package name.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 (defvar buffer-mode-name nil "Original mode name.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 (defvar lisp-buffer-package nil "T if in lisp-buffer-package.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 (defvar lisp-dont-cache-package nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 "If Non-Nil then refind the most recent in-package each time.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 ;;;%Globals from ilisp-ext.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 (defvar ilisp-ext-load-hook nil "Hook to run when extensions are loaded.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 (defvar left-delimiter "\(" "*Left delimiter for find-unbalanced.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 (defvar right-delimiter "\)" "*Right delimiter for find-unbalanced.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 ;;; Copies of ilisp var definitions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 (defvar ilisp-complete nil "T when ilisp is in completion mode.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 (defvar ilisp-modes '(ilisp-mode) "List of all inferior ilisp modes.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 (defvar lisp-fill-marker (make-marker)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 "Keeps track of point so that it does not move during a reindent-lisp.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 (defvar ilisp-comment-marker (make-marker)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 "Marker for end of a comment region.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 (defvar lisp-buffer-file nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 "Cons of buffer-file-name and the expanded name.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 (make-variable-buffer-local 'lisp-buffer-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 (defvar ilisp-last-message nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 (defvar ilisp-last-prompt nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 (defvar lisp-prev-l/c-dir/file nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 "Saves the (directory . file) pair used in the last find-file-lisp,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 load-file-lisp or compile-file-lisp command. Used for determining the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 default in the next one.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 (defvar ilisp-last-buffer nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 "The last used LISP buffer.")