1 ;;; -*- Mode: Emacs-Lisp -*-
4 ;;; ILISP Lucid Common Lisp dialect definition
6 ;;; This file is part of ILISP.
7 ;;; Please refer to the file COPYING for copyrights and licensing
9 ;;; Please refer to the file ACKNOWLEGDEMENTS for an (incomplete) list
10 ;;; of present and past contributors.
12 ;;; $Id: ilisp-luc.el,v 1.3 2001-07-02 09:40:47 youngs Exp $
15 (defvar ilisp-lucid-init-file "lucid.lisp")
18 (defun lucid-check-prompt (old new)
19 "Compare the break level printed at the beginning of the prompt."
20 (let* ((old-level (if (and old (eq 0 (string-match "\\(->\\)+" old)))
21 (- (match-end 0) (match-beginning 0))
23 (new-level (if (eq 0 (string-match "\\(->\\)+" new))
24 (- (match-end 0) (match-beginning 0))
26 (<= new-level old-level)))
29 (defdialect lucid "Lucid Common LISP"
31 (ilisp-load-init 'lucid ilisp-lucid-init-file)
32 (setq comint-prompt-regexp "^\\(->\\)+ \\|^[^> ]*> "
36 comint-interrupt-regexp ">>Break: Keyboard interrupt"
38 (function (lambda (old line)
39 (comint-prompt-status old line 'lucid-check-prompt))))
40 (setq ilisp-error-regexp "ILISP:[^\"]*\\|>>[^\n]*")
41 (setq ilisp-source-types (append ilisp-source-types '(("any"))))
42 (setq ilisp-find-source-command
43 "(ILISP:ilisp-source-files \"%s\" \"%s\" \"%s\")")
47 ;; The global definition should now take care to find out the
48 ;; proper extension. See file 'ilisp-cl.el'.
50 ;;(setq ilisp-binary-command
51 ;; "(first (last lucid::*load-binary-pathname-types*))")
54 (setq ild-abort-string ":A"
55 ild-continue-string ":C"
57 ild-next-string-arg ":N %s"
58 ild-previous-string ":P"
59 ild-previous-string-arg ":P %s"
61 ild-bottom-string ":>"
62 ild-backtrace-string ":B"
63 ild-locals-string ":V"
64 ild-local-string-arg ":L %s"
65 ild-return-string ":R"
67 ild-trap-on-exit-string ":X T")
70 (unless lucid-program (setq lucid-program "lisp"))
72 (defdialect liquid "Liquid Common Lisp" lucid)
74 (unless liquid-program (setq liquid-program "lisp"))
76 ;;; end of file -- ilisp-luc.el --