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