update.
[elisp/apel.git] / emu-e20_3.el
1 ;;; emu-e20_3.el --- emu API implementation for Emacs 20.3.
2
3 ;; Copyright (C) 1998 Free Software Foundation, Inc.
4
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6 ;; Keywords: emulation, compatibility, Mule
7
8 ;; This file is part of emu.
9
10 ;; This program is free software; you can redistribute it and/or
11 ;; modify it under the terms of the GNU General Public License as
12 ;; published by the Free Software Foundation; either version 2, or (at
13 ;; your option) any later version.
14
15 ;; This program is distributed in the hope that it will be useful, but
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 ;; General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
24
25 ;;; Commentary:
26
27 ;;    This module requires Emacs 20.2.91 or later.
28
29 ;;; Code:
30
31 ;;; @ character
32 ;;;
33
34 (defsubst char-length (char)
35   "Return indexing length of multi-byte form of CHAR."
36   1)
37
38 (defmacro char-next-index (char index)
39   "Return index of character succeeding CHAR whose index is INDEX."
40   `(1+ ,index))
41
42
43 ;;; @ string
44 ;;;
45
46 (defalias 'sset 'store-substring)
47
48 (defun string-to-char-list (string)
49   "Return a list of which elements are characters in the STRING."
50   (mapcar #'identity string))
51
52 (defalias 'string-to-int-list 'string-to-char-list)
53
54
55 ;;; @ end
56 ;;;
57
58 (provide 'emu-e20_3)
59
60 ;;; emu-e20_3.el ends here