(MAKEIT.BAT): Modify for apel-ja@lists.chise.org.
[elisp/apel.git] / poem-xm.el
index 7f85b96..88cf388 100644 (file)
@@ -1,6 +1,6 @@
 ;;; poem-xm.el --- poem module for XEmacs-mule; -*-byte-compile-dynamic: t;-*-
 
-;; Copyright (C) 1998,1999 Free Software Foundation, Inc.
+;; Copyright (C) 1998,1999,2002,2003,2005 Free Software Foundation, Inc.
 
 ;; Author: MORIOKA Tomohiko <tomo@m17n.org>
 ;; Keywords: emulation, compatibility, Mule
@@ -19,8 +19,8 @@
 
 ;; 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., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
 
 ;;; Code:
 
@@ -68,6 +68,15 @@ but the contents viewed as characters do change.
   "Return index of character succeeding CHAR whose index is INDEX."
   `(1+ ,index))
 
+(if (not (fboundp 'char-length))
+    (defalias 'char-length
+      (lambda (char)
+       "Return number of bytes a CHARACTER occupies in a string or buffer.
+It always returns 1 in XEmacs.  It is for compatibility with MULE 2.3."
+       1)))
+
+(defalias-maybe 'char-valid-p 'characterp)
+
 
 ;;; @ string
 ;;;
@@ -75,12 +84,16 @@ but the contents viewed as characters do change.
 (defun-maybe string-to-int-list (str)
   (mapcar #'char-int str))
 
+(defun-maybe string-to-char-list (str)
+  (mapcar #'identity str))
+
 (defalias 'looking-at-as-unibyte 'looking-at)
 
 
 ;;; @ end
 ;;;
 
-(provide 'poem-xm)
+(require 'product)
+(product-provide (provide 'poem-xm) (require 'apel-ver))
 
 ;;; poem-xm.el ends here