annotate lisp/ilisp/ilcompat.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 ;;; ilcompat.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 ;;; Global definitions/declarations
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 (defconst +ilisp-emacs-version-id+
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 (cond ((string-match "XEmacs" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 'xemacs)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ((string-match "Lucid" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 (if (string-match "^19.[0-7][^0-9]" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 'lucid-19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 'lucid-19-new))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ((string-match "^19" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 'fsf-19)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (t 'fsf-18))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 "The version of Emacs ILISP is running in.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 Declared as '(member fsf-19 fsf-19 lucid-19 lucid-19-new xemacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 Set in ilcompat.el.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ;;;============================================================================
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ;;; Code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 (cond ((or (eq +ilisp-emacs-version-id+ 'lucid-19)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (eq +ilisp-emacs-version-id+ 'lucid-19-new))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (load "illuc19"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ((eq +ilisp-emacs-version-id+ 'xemacs) (load "ilxemacs"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ((eq +ilisp-emacs-version-id+ 'fsf-19) (load "ilfsf19"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ((eq +ilisp-emacs-version-id+ 'fsf-18) (load "ilfsf18"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ;;;============================================================================
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ;;; Epilogue
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (provide 'compat)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 ;;; end of file -- compat.el --