| 1 | ;;; -*-byte-compile-dynamic: t;-*- |
|---|
| 2 | ;;; poem-e20_3.el --- poem submodule for Emacs 20.3 |
|---|
| 3 | |
|---|
| 4 | ;; Copyright (C) 1998,1999,2000 Free Software Foundation, Inc. |
|---|
| 5 | |
|---|
| 6 | ;; Author: MORIOKA Tomohiko <tomo@m17n.org> |
|---|
| 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 | (require 'pym) |
|---|
| 33 | |
|---|
| 34 | ;;; @ character |
|---|
| 35 | ;;; |
|---|
| 36 | |
|---|
| 37 | (defsubst char-length (char) |
|---|
| 38 | "Return indexing length of multi-byte form of CHAR." |
|---|
| 39 | 1) |
|---|
| 40 | |
|---|
| 41 | (defmacro char-next-index (char index) |
|---|
| 42 | "Return index of character succeeding CHAR whose index is INDEX." |
|---|
| 43 | `(1+ ,index)) |
|---|
| 44 | |
|---|
| 45 | (defalias-maybe 'characterp 'char-valid-p) |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | ;;; @ string |
|---|
| 49 | ;;; |
|---|
| 50 | |
|---|
| 51 | (defalias 'sset 'store-substring) |
|---|
| 52 | |
|---|
| 53 | (defun string-to-char-list (string) |
|---|
| 54 | "Return a list of which elements are characters in the STRING." |
|---|
| 55 | (mapcar #'identity string)) |
|---|
| 56 | |
|---|
| 57 | (defalias 'string-to-int-list 'string-to-char-list) |
|---|
| 58 | |
|---|
| 59 | (defalias 'looking-at-as-unibyte 'looking-at) |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | ;;; @ end |
|---|
| 63 | ;;; |
|---|
| 64 | |
|---|
| 65 | (require 'product) |
|---|
| 66 | (product-provide (provide 'poem-e20_3) (require 'apel-ver)) |
|---|
| 67 | |
|---|
| 68 | ;;; poem-e20_3.el ends here |
|---|