Mercurial > emacs
comparison lisp/progmodes/inf-lisp.el @ 957:2619b7a9c11e
entered into RCS
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Wed, 12 Aug 1992 12:50:10 +0000 |
parents | 6295ac3be480 |
children | 2c7997f249eb |
comparison
equal
deleted
inserted
replaced
956:c530dbc9a92a | 957:2619b7a9c11e |
---|---|
140 | 140 |
141 (require 'comint) | 141 (require 'comint) |
142 (require 'lisp-mode) | 142 (require 'lisp-mode) |
143 | 143 |
144 | 144 |
145 ;;;###autoload | |
145 (defvar inferior-lisp-filter-regexp "\\`\\s *\\(:\\(\\w\\|\\s_\\)\\)?\\s *\\'" | 146 (defvar inferior-lisp-filter-regexp "\\`\\s *\\(:\\(\\w\\|\\s_\\)\\)?\\s *\\'" |
146 "*What not to save on inferior Lisp's input history | 147 "*What not to save on inferior Lisp's input history |
147 Input matching this regexp is not saved on the input history in inferior-lisp | 148 Input matching this regexp is not saved on the input history in inferior-lisp |
148 mode. Default is whitespace followed by 0 or 1 single-letter :keyword | 149 mode. Default is whitespace followed by 0 or 1 single-letter :keyword |
149 (as in :a, :c, etc.)") | 150 (as in :a, :c, etc.)") |
210 (define-key inferior-lisp-mode-map "\C-cf" 'lisp-show-function-documentation) | 211 (define-key inferior-lisp-mode-map "\C-cf" 'lisp-show-function-documentation) |
211 (define-key inferior-lisp-mode-map "\C-cv" | 212 (define-key inferior-lisp-mode-map "\C-cv" |
212 'lisp-show-variable-documentation)) | 213 'lisp-show-variable-documentation)) |
213 | 214 |
214 | 215 |
216 ;;;###autoload | |
215 (defvar inferior-lisp-program "lisp" | 217 (defvar inferior-lisp-program "lisp" |
216 "*Program name for invoking an inferior Lisp with `inferior-lisp'.") | 218 "*Program name for invoking an inferior Lisp with `inferior-lisp'.") |
217 | 219 |
220 ;;;###autoload | |
218 (defvar inferior-lisp-load-command "(load \"%s\")\n" | 221 (defvar inferior-lisp-load-command "(load \"%s\")\n" |
219 "*Format-string for building a Lisp expression to load a file. | 222 "*Format-string for building a Lisp expression to load a file. |
220 This format string should use %s to substitute a file name | 223 This format string should use %s to substitute a file name |
221 and should result in a Lisp expression that will command the inferior Lisp | 224 and should result in a Lisp expression that will command the inferior Lisp |
222 to load that file. The default works acceptably on most Lisps. | 225 to load that file. The default works acceptably on most Lisps. |
223 The string \"(progn (load \\\"%s\\\" :verbose nil :print t) (values))\\\n\" | 226 The string \"(progn (load \\\"%s\\\" :verbose nil :print t) (values))\\\n\" |
224 produces cosmetically superior output for this application, | 227 produces cosmetically superior output for this application, |
225 but it works only in Common Lisp.") | 228 but it works only in Common Lisp.") |
226 | 229 |
230 ;;;###autoload | |
227 (defvar inferior-lisp-prompt "^[^> ]*>+:? *" | 231 (defvar inferior-lisp-prompt "^[^> ]*>+:? *" |
228 "Regexp to recognise prompts in the inferior Lisp. | 232 "Regexp to recognise prompts in the inferior Lisp. |
229 Defaults to \"^[^> ]*>+:? *\", which works pretty good for Lucid, kcl, | 233 Defaults to \"^[^> ]*>+:? *\", which works pretty good for Lucid, kcl, |
230 and franz. This variable is used to initialise comint-prompt-regexp in the | 234 and franz. This variable is used to initialise comint-prompt-regexp in the |
231 inferior-lisp buffer. | 235 inferior-lisp buffer. |
235 franz: \"^\\(->\\|<[0-9]*>:\\) *\" | 239 franz: \"^\\(->\\|<[0-9]*>:\\) *\" |
236 kcl: \"^>+ *\" | 240 kcl: \"^>+ *\" |
237 | 241 |
238 This is a fine thing to set in your .emacs file.") | 242 This is a fine thing to set in your .emacs file.") |
239 | 243 |
244 ;;;###autoload | |
240 (defvar inferior-lisp-mode-hook '() | 245 (defvar inferior-lisp-mode-hook '() |
241 "*Hook for customising inferior-lisp mode") | 246 "*Hook for customising inferior-lisp mode") |
242 | 247 |
243 (defun inferior-lisp-mode () | 248 (defun inferior-lisp-mode () |
244 "Major mode for interacting with an inferior Lisp process. | 249 "Major mode for interacting with an inferior Lisp process. |
302 | 307 |
303 (defun lisp-input-filter (str) | 308 (defun lisp-input-filter (str) |
304 "Don't save anything matching inferior-lisp-filter-regexp" | 309 "Don't save anything matching inferior-lisp-filter-regexp" |
305 (not (string-match inferior-lisp-filter-regexp str))) | 310 (not (string-match inferior-lisp-filter-regexp str))) |
306 | 311 |
312 ;;;###autoload | |
307 (defun inferior-lisp (cmd) | 313 (defun inferior-lisp (cmd) |
308 "Run an inferior Lisp process, input and output via buffer *inferior-lisp*. | 314 "Run an inferior Lisp process, input and output via buffer *inferior-lisp*. |
309 If there is a process already running in *inferior-lisp*, just switch | 315 If there is a process already running in *inferior-lisp*, just switch |
310 to that buffer. | 316 to that buffer. |
311 With argument, allows you to edit the command line (default is value | 317 With argument, allows you to edit the command line (default is value |