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