tm 7.45.
[elisp/apel.git] / emu.el
1 ;;;
2 ;;; emu.el --- Emulation module for each Emacs variants
3 ;;;
4 ;;; Copyright (C) 1995 Free Software Foundation, Inc.
5 ;;; Copyright (C) 1995 .. 1996 MORIOKA Tomohiko
6 ;;;
7 ;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
8 ;;; Version:
9 ;;;     $Id: emu.el,v 7.0 1996/02/26 01:15:31 morioka Exp $
10 ;;; Keywords: emulation, compatibility, NEmacs, Mule, XEmacs
11 ;;;
12 ;;; This file is part of tl (Tiny Library).
13 ;;;
14 ;;; This program is free software; you can redistribute it and/or
15 ;;; modify it under the terms of the GNU General Public License as
16 ;;; published by the Free Software Foundation; either version 2, or
17 ;;; (at your option) any later version.
18 ;;;
19 ;;; This program is distributed in the hope that it will be useful,
20 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22 ;;; General Public License for more details.
23 ;;;
24 ;;; You should have received a copy of the GNU General Public License
25 ;;; along with This program.  If not, write to the Free Software
26 ;;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
27 ;;;
28 ;;; Code:
29
30 (cond ((boundp 'MULE)  (require 'emu-mule))
31       ((boundp 'NEMACS)(require 'emu-nemacs))
32       (t               (require 'emu-orig))
33       )
34
35
36 ;;; @ Emacs 19.29 emulation
37 ;;;
38
39 (or (fboundp 'buffer-substring-no-properties)
40     (defalias 'buffer-substring-no-properties 'buffer-substring)
41     )
42
43 (cond ((or (<= emacs-major-version 18)
44            (<= emacs-minor-version 28))
45        ;; for Emacs 19.28 or earlier
46        (defun tl:read-string (prompt &optional initial-input history)
47          (read-string prompt initial-input)
48          )
49        )
50       (t
51        ;; for Emacs 19.29 or later
52        (defalias 'tl:read-string 'read-string)
53        ))
54
55
56 ;;; @ end
57 ;;;
58
59 (provide 'emu)
60
61 ;;; emu.el ends here