annotate lisp/ilisp/ilisp-cl.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-cl.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 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; ILISP Common Lisp dialect definition
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;;%%Common LISP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 (defvar ilisp-cl-ilisp-package-file "ilisp-pkg.lisp")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 (defvar ilisp-clisp-init-file "clisp.lisp")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 (defdialect clisp "Common LISP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ilisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 (setq ilisp-load-or-send-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 "(or (and (load \"%s\" :if-does-not-exist nil) t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 (and (load \"%s\" :if-does-not-exist nil) t))")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;; The following line is an incredible kludge to bypass the behavior
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ;; of ilisp-load-init and to stick the package file in front of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ;; everything.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ;; Check what ilisp-load-init does to understand why I am forced to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ;; do this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ;; Marco Antoniotti 11/22/94
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (ilisp-load-init 'ilisp-package-kludge ilisp-cl-ilisp-package-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (ilisp-load-init 'clisp ilisp-clisp-init-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 (setq ilisp-package-regexp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 "^[ \t]*(in-package[ \t\n]*"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ilisp-package-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 "(let ((*package* *package*)) %s (package-name *package*))"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 ilisp-package-name-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 "(package-name *package*)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 ilisp-in-package-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 "(in-package \"%s\")"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ilisp-last-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 "*"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 ilisp-save-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 "(progn (ILISP:ilisp-save) %s\n)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 ilisp-restore-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 "(ILISP:ilisp-restore)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 ilisp-block-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 "(progn %s\n)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ilisp-eval-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 "(ILISP:ilisp-eval \"%s\" \"%s\" \"%s\")"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 ilisp-defvar-regexp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 "(defvar[ \t\n]")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 (setq ilisp-defvar-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 "(ILISP:ilisp-eval \"(let ((form '%s)) (progn (makunbound (second form)) (eval form)))\" \"%s\" \"%s\")")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 (setq ilisp-compile-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 "(ILISP:ilisp-compile \"%s\" \"%s\" \"%s\")"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ilisp-describe-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 "(ILISP:ilisp-describe \"%s\" \"%s\")"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 ilisp-inspect-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 "(ILISP:ilisp-inspect \"%s\" \"%s\")"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 ilisp-arglist-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 "(ILISP:ilisp-arglist \"%s\" \"%s\")")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (setq ilisp-documentation-types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 '(("function") ("variable")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 ("structure") ("type")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 ("setf") ("class")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 ("(qualifiers* (class ...))")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (setq ilisp-documentation-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 "(ILISP:ilisp-documentation \"%s\" \"%s\" \"%s\")")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (setq ilisp-macroexpand-1-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 "(ILISP:ilisp-macroexpand-1 \"%s\" \"%s\")")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (setq ilisp-macroexpand-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 "(ILISP:ilisp-macroexpand \"%s\" \"%s\")")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (setq ilisp-complete-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 "(ILISP:ilisp-matching-symbols \"%s\" \"%s\" %s %s %s)")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 (setq ilisp-locator 'lisp-locate-clisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 (setq ilisp-source-types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 '(("function") ("macro") ("variable")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 ("structure") ("type")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 ("setf") ("class")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 ("(qualifiers* (class ...))")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 (setq ilisp-callers-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 "(ILISP:ilisp-callers \"%s\" \"%s\")"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 ilisp-trace-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 "(ILISP:ilisp-trace \"%s\" \"%s\" \"%s\")"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 ilisp-untrace-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 "(ILISP:ilisp-untrace \"%s\" \"%s\")")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 (setq ilisp-directory-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 "(namestring *default-pathname-defaults*)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 ilisp-set-directory-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 "(setq *default-pathname-defaults* (parse-namestring \"%s\"))")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (setq ilisp-load-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 "(load \"%s\")")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 (setq ilisp-compile-file-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 "(ILISP:ilisp-compile-file \"%s\" \"%s\")"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 ;;; end of file -- ilisp-cl.el --