2 ;;; emu.el --- Emulation module for each Emacs variants
4 ;;; Copyright (C) 1995 Free Software Foundation, Inc.
5 ;;; Copyright (C) 1995 MORIOKA Tomohiko
7 ;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
9 ;;; $Id: emu.el,v 5.0 1996/01/16 21:52:37 morioka Exp $
10 ;;; Keywords: emulation, compatibility, NEmacs, Mule, XEmacs
12 ;;; This file is part of tl (Tiny Library).
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.
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.
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.
30 (cond ((boundp 'MULE) (require 'emu-mule))
31 ((boundp 'NEMACS)(require 'emu-nemacs))
32 (t (require 'emu-orig))
36 ;;; @ Emacs 19.29 emulation
39 (cond ((fboundp 'buffer-substring-no-properties)
40 ;; for Emacs 19.29 or later
41 (defalias 'tl:read-string 'read-string)
44 ;; for Emacs 19.28 or earlier
45 (defalias 'buffer-substring-no-properties 'buffer-substring)
47 (defun tl:read-string (prompt &optional initial-input history)
48 (read-string prompt initial-input)