* pces.el: Require `pces-raw' if file-coding feature is not
[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 (defalias-maybe 'characterp 'char-valid-p)
44
45
46 ;;; @ string
47 ;;;
48
49 (defalias 'sset 'store-substring)
50
51 (defun string-to-char-list (string)
52   "Return a list of which elements are characters in the STRING."
53   (mapcar #'identity string))
54
55 (defalias 'string-to-int-list 'string-to-char-list)
56
57 (defalias 'looking-at-as-unibyte 'looking-at)
58
59
60 ;;; @ end
61 ;;;
62
63 (provide 'poem-e20_3)
64
65 ;;; poem-e20_3.el ends here