annotate lisp/ilisp/ilisp-cmu.el @ 128:13db4aa44a2e

Added tag xemacs-20-1p2 for changeset 7b236889ca3a
author cvs
date Mon, 13 Aug 2007 09:28:11 +0200
parents b82b59fe008d
children 6608ceec7cf8
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-cmu.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 ;;; ILISP CMU Common Lisp dialect definition
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;;%%%CMULisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 (defvar cmulisp-source-directory-regexp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 "\\/afs\\/cs\\.cmu\\.edu\\/project\\/clisp\\/src\\/[0-9]*\\/"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 "*Regexp to match cmulisp source code directory.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 (defvar cmulisp-local-source-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 "*Where the cmulisp sources really are.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 (defvar ilisp-cmulisp-init-file "cmulisp.lisp")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (defun cmulisp-source-directory-fixup-function ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 (if cmulisp-local-source-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 (replace-match cmulisp-local-source-directory)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 (defun cmulisp-check-prompt (old new)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 "Compare the break level printed at the beginning of the prompt."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (let* ((was-in-break (and old (string-match "]+" old)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (old-level (if was-in-break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 (- (match-end 0) (match-beginning 0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 (is-in-break (string-match "]+" new))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 (new-level (if is-in-break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (- (match-end 0) (match-beginning 0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 0)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 (<= new-level old-level)))
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 (defdialect cmulisp "CMU Common LISP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 clisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 (ilisp-load-init 'cmu ilisp-cmulisp-init-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 (if cmulisp-local-source-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 (setq ilisp-source-directory-fixup-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 (list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (cons cmulisp-source-directory-regexp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 cmulisp-local-source-directory)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (message "cmulisp-local-source-directory not set."))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (setq comint-prompt-regexp "^\\([0-9]+\\]+\\|\\*\\) "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ilisp-trace-command "(ILISP:cmulisp-trace \"%s\" \"%s\" \"%s\")"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 comint-prompt-status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (function (lambda (old line)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 (comint-prompt-status old line 'cmulisp-check-prompt)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ilisp-error-regexp "ILISP:[^\"]*\\|Error [^\n]*\n\n"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ;; The above regexp has been suggested by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ;; hunter@work.nlm.nih.gov (Larry Hunter)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 ilisp-arglist-command "(ILISP:arglist \"%s\" \"%s\")"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ilisp-find-source-command "(ILISP:source-file \"%s\" \"%s\" \"%s\")"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 comint-fix-error ":pop"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 comint-continue ":go"
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-reset ":q"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 comint-interrupt-regexp "Interrupted at"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
87 ilisp-binary-extension "sparcf"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
88 ilisp-init-binary-extension "sparcf"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
89 ilisp-binary-command "\"sparcf\""
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
90 ))