tm 7.40.
[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 MORIOKA Tomohiko
6 ;;;
7 ;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
8 ;;; Version:
9 ;;;     $Id: emu.el,v 5.0 1996/01/16 21:52:37 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 (cond ((fboundp 'buffer-substring-no-properties)
40        ;; for Emacs 19.29 or later
41        (defalias 'tl:read-string 'read-string)
42        )
43       (t
44        ;; for Emacs 19.28 or earlier
45        (defalias 'buffer-substring-no-properties 'buffer-substring)
46        
47        (defun tl:read-string (prompt &optional initial-input history)
48          (read-string prompt initial-input)
49          )
50        ))
51
52
53 ;;; @ end
54 ;;;
55
56 (provide 'emu)
57
58 ;;; emu.el ends here