annotate lisp/ilisp/ilisp-dia.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-dia.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 ;;;%%CUSTOMIZING DIALECTS
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 is already set up with support for a number of dialects.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;; Each dialect has a command NAME that will start an inferior LISP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;; of that dialect. NAME-hook is a hook that will run after the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; default settings for NAME are set up. NAME-program is the default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;; program for NAME. A prefix when starting a dialect will cause you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;;; to be prompted for the buffer name and the program. When setting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;;; something in a hook, you should use the most general dialect that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ;;; makes sense. Dialect definitions and their hooks are executed from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ;;; least specific to most specific. They will be executed before the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ;;; inferior LISP is started.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ;;; These are the currently supported dialects. The dialects
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ;;; are listed so that the indentation correponds to the hierarchical
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ;;; relationship between dialects.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ;;; clisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;;; allegro
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ;;; Clisp (Haible and Stoll)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ;;; lispworks (Harlequin)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ;;; lucid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ;;; cmulisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ;;; kcl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ;;; akcl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ;;; ibcl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ;;; ecl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ;;; gcl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ;;; scheme
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 ;;; oaklisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ;;; Scheme->C (still "in fieri")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 ;;; If anyone figures out support for other dialects I would be happy
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 ;;; to include it in future releases.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 ;;; ;;; Example of local changes and extensions to ilisp mode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 ;;; (setq ilisp-load-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ;;; '(lambda ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ;;; ;; Change the allegro lisp program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ;;; (setq allegro-program "/usr/misc/bin/lisp")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ;;; ;; Add a new key binding
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 ;;; (defkey-ilisp "\C-\M-a" 'arglist-lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 ;;; ;; Define a new subdialect to run on another machine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ;;; (defdialect cmlisp "Connection Machine LISP."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ;;; lucid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 ;;; (setq ilisp-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ;;; "rsh power /usr/local/cm/bin/starlisp"))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 ;;; ;;; Automatically load a new subdialect
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ;;; (autoload 'cmlisp "ilisp" "Run an inferior CM lisp." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ;;; To define a new dialect use the macro defdialect. For examples,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 ;;; look at the dialect definitions in this file. There are hooks and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 ;;; variables for almost anything that you are likely to need to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 ;;; change. The relationship between dialects is hierarchical with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ;;; the root values being defined in setup-ilisp. For a new dialect,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 ;;; you only need to change the variables that are different than in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ;;; the parent dialect.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 ;;; ILISP dialect definition code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ;;;%Dialects
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 (defun lisp-add-dialect (dialect)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 "Add DIALECT as a supported ILISP dialect."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 (if (not (lisp-memk dialect ilisp-dialects 'car))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (setq ilisp-dialects
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 (cons (list dialect) ilisp-dialects))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (defun ilisp-start-dialect (buffer program setup)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 ;; Allow dialects to be started from command line
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 (if (eq current-prefix-arg 0) (setq current-prefix-arg nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 (setq ilisp-last-buffer (current-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 buffer (if current-prefix-arg
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 (read-from-minibuffer "Buffer: " buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 buffer))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (funcall setup buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 (setq ilisp-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (or program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (if current-prefix-arg
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 (lisp-read-program "Program: " ilisp-program)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 ilisp-program)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (ilisp buffer setup))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 (defmacro defdialect (dialect full-name parent &rest body)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 "Define a new ILISP dialect. DIALECT is the name of the function to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 invoke the inferior LISP. The hook for that LISP will be called
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 DIALECT-hook. The default program will be DIALECT-program. FULL-NAME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 is a string that describes the inferior LISP. PARENT is the name of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 the parent dialect."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 (let ((setup (read (format "setup-%s" dialect)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 (hook (read (format "%s-hook" dialect)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 (program (read (format "%s-program" dialect)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 (dialects (format "%s" dialect)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 (`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 (defvar (, hook) nil (, (format "*Inferior %s hook." full-name)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (defvar (, program) nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 (, (format "*Inferior %s default program." full-name)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 (defun (, setup) (buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 (, (format "Set up for interacting with %s." full-name))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 (, (read (format "(setup-%s buffer)" parent)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 (,@ body)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 (setq ilisp-program (or (, program) ilisp-program)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 ilisp-dialect (cons '(, dialect) ilisp-dialect))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 (run-hooks '(, (read (format "%s-hook" dialect)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 (defun (, dialect) (&optional buffer program)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 (, (format "Create an inferior %s. With prefix, prompt for buffer and program."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 full-name))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (interactive (list nil nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 (ilisp-start-dialect (or buffer (, dialects))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 '(, setup))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 (setq (, program) ilisp-program))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (lisp-add-dialect (, dialects))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 ;;;%%ilisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 (defun setup-ilisp (buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 "Set up for interacting with an inferior LISP."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 (set-buffer (get-buffer-create "*ilisp-send*"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (kill-all-local-variables)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 (lisp-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (setq ilisp-buffer (format "*%s*" buffer))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 (set-buffer (get-buffer-create ilisp-buffer))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 (setq major-mode 'ilisp-mode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 mode-name "ILISP")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 (lisp-mode-variables t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 ;; Set variables to nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 (let ((binary ilisp-binary-extension)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 (init ilisp-init-binary-extension)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 (vars ilisp-locals))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 (while (not (null vars))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (make-local-variable (car vars))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 (set (car vars) nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 (setq vars (cdr vars)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 ;; Preserve from initialization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (if binary (setq ilisp-binary-extension binary))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 (if init (setq ilisp-init-binary-extension init)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 ;; Comint defaults
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 (set-ilisp-input-ring-size 200)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 (setq comint-prompt-regexp "^[^<> ]*>+:? *"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 comint-get-old-input 'ilisp-get-old-input
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 comint-input-sentinel (function ignore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 comint-input-filter 'ilisp-input-filter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 comint-input-sender 'comint-default-send
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 comint-eol-on-send t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 ;; Comint-ipc defaults
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 (setq comint-send-newline t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 comint-always-scroll nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 comint-output-buffer " *Output*"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 comint-error-buffer " *Error Output*"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 comint-error-regexp "^\"ILISP:"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 comint-output-filter (function identity)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 comint-interrupt-start 'comint-interrupt-start
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 comint-handler 'ilisp-handler
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 comint-update-status 'ilisp-update-status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 comint-prompt-status 'comint-prompt-status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 comint-abort-hook 'ilisp-abort-handler)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 (setq ilisp-use-map ilisp-mode-map
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 ilisp-init-hook '((lambda () (ilisp-init nil nil t)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 ilisp-filter-regexp "\\`\\s *\\(:\\(\\w\\|\\s_\\)*\\)?\\s *\\'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 ilisp-filter-length 3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 ilisp-error-filter 'ilisp-error-filter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 ilisp-error-regexp ".*"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 ilisp-symbol-delimiters "^ \t\n\('\"#.\)<>"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 ilisp-program "lisp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 ilisp-locator 'lisp-locate-ilisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 ilisp-calls-locator 'lisp-locate-calls)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 (run-hooks 'ilisp-mode-hook))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 (defun run-ilisp ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 "Create an inferior LISP prompting for dialect. With prefix, prompt
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 for buffer name as well."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 (let ((dialect (completing-read "Dialect: " ilisp-dialects nil t)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 (if (not (zerop (length dialect)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 (call-interactively (read dialect)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204