-
Notifications
You must be signed in to change notification settings - Fork 11
/
emu.el
91 lines (64 loc) · 2.6 KB
/
emu.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
;;; emu.el --- Emulation module for each Emacs variants -*- lexical-binding: t -*-
;; Copyright (C) 1995,1996,1997,1998 Free Software Foundation, Inc.
;; Author: MORIOKA Tomohiko <[email protected]>
;; Keywords: emulation, compatibility, Nemacs, MULE, Emacs/mule, XEmacs
;; This file is part of emu.
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2, or (at
;; your option) any later version.
;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;;; Code:
(require 'poe)
(defvar running-emacs-18 nil)
(defvar running-xemacs nil)
(defvar running-mule-merged-emacs t)
(defvar running-xemacs-with-mule nil)
(defvar running-emacs-19 nil)
(defvar running-emacs-19_29-or-later t)
(defvar running-xemacs-19 nil)
(defvar running-xemacs-20-or-later running-xemacs)
(defvar running-xemacs-19_14-or-later running-xemacs-20-or-later)
;; mouse
(defvar mouse-button-1 [mouse-1])
(defvar mouse-button-2 [mouse-2])
(defvar mouse-button-3 [down-mouse-3])
(require 'poem)
(require 'mcharset)
(require 'invisible)
(defsubst char-list-to-string (char-list)
"Convert list of character CHAR-LIST to string."
(apply (function string) char-list))
(defalias 'insert-binary-file-contents-literally
'insert-file-contents-literally)
;; old Mule emulating aliases
(defun char-category (character)
"Return string of category mnemonics for CHAR in TABLE.
CHAR can be any multilingual character
TABLE defaults to the current buffer's category table."
(category-set-mnemonics (char-category-set character)))
;;; @ Mule emulating aliases
;;;
;;; You should not use it.
(or (boundp '*noconv*)
(defconst *noconv* 'binary
"Coding-system for binary.
This constant is defined to emulate old MULE anything older than MULE 2.3.
It is obsolete, so don't use it."))
;;; @ without code-conversion
;;;
(defalias 'insert-binary-file-contents 'insert-file-contents-as-binary)
(make-obsolete 'insert-binary-file-contents 'insert-file-contents-as-binary
"17 Sep 1998")
;;; @ end
;;;
(require 'product)
(product-provide (provide 'emu) (require 'apel-ver))
;;; emu.el ends here