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