annotate lisp/ilisp/ilisp-dia.el @ 4:b82b59fe008d r19-15b3

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