annotate lisp/ilisp/ilisp-def.el @ 58:8b0bdfdf0cf0 r19-16-pre4

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