X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=poem-xm.el;h=7dd424472e174417c02325554df5e21bd573745a;hb=949cf1afa5fed82d6385182a8df585fa5fdd6432;hp=1ce5eeca3faeeb53f7565ccf62e84a63d111db6a;hpb=0df64d3b6ef5ae5212fd59ee13dd5f044b378ba6;p=elisp%2Fapel.git diff --git a/poem-xm.el b/poem-xm.el index 1ce5eec..7dd4244 100644 --- a/poem-xm.el +++ b/poem-xm.el @@ -1,8 +1,8 @@ -;;; poem-xm.el --- poem implementation for XEmacs-mule +;;; poem-xm.el --- poem module for XEmacs-mule; -*-byte-compile-dynamic: t;-*- -;; Copyright (C) 1998 Free Software Foundation, Inc. +;; Copyright (C) 1998,1999 Free Software Foundation, Inc. -;; Author: MORIOKA Tomohiko +;; Author: MORIOKA Tomohiko ;; Keywords: emulation, compatibility, Mule ;; This file is part of APEL (A Portable Emacs Library). @@ -24,50 +24,8 @@ ;;; Code: -(require 'poem-20) - - -;;; @ fix coding-system definition -;;; - -;; It seems not bug, but I can not permit it... -(and (coding-system-property 'iso-2022-jp 'input-charset-conversion) - (copy-coding-system 'iso-2022-7bit 'iso-2022-jp)) - -;; Redefine if -{dos|mac|unix} is not found. -(or (find-coding-system 'raw-text-dos) - (copy-coding-system 'no-conversion-dos 'raw-text-dos)) -(or (find-coding-system 'raw-text-mac) - (copy-coding-system 'no-conversion-mac 'raw-text-mac)) -(or (find-coding-system 'raw-text-unix) - (copy-coding-system 'no-conversion-unix 'raw-text-unix)) - -(or (find-coding-system 'ctext-dos) - (make-coding-system - 'ctext 'iso2022 - "Coding-system used in X as Compound Text Encoding." - '(charset-g0 ascii charset-g1 latin-iso8859-1 - eol-type nil - mnemonic "CText"))) - -(or (find-coding-system 'iso-2022-jp-2-dos) - (make-coding-system - 'iso-2022-jp-2 'iso2022 - "ISO-2022 coding system using SS2 for 96-charset in 7-bit code." - '(charset-g0 ascii - charset-g2 t ;; unspecified but can be used later. - seven t - short t - mnemonic "ISO7/SS2" - eol-type nil))) - -(or (find-coding-system 'euc-kr-dos) - (make-coding-system - 'euc-kr 'iso2022 - "Coding-system of Korean EUC (Extended Unix Code)." - '(charset-g0 ascii charset-g1 korean-ksc5601 - mnemonic "ko/EUC" - eol-type nil))) +(eval-when-compile + (require 'poe)) ;;; @ buffer representation @@ -87,7 +45,7 @@ but the contents viewed as characters do change. ;;; ;; avoid bug of XEmacs -(or (integerp (cdr (split-char ?a))) +(or (integerp (car (cdr (split-char ?a)))) (defun split-char (char) "Return list of charset and one or two position-codes of CHAR." (let ((charset (char-charset char))) @@ -114,7 +72,7 @@ but the contents viewed as characters do change. ;;; @ string ;;; -(defun string-to-int-list (str) +(defun-maybe string-to-int-list (str) (mapcar #'char-int str)) (defalias 'looking-at-as-unibyte 'looking-at) @@ -123,6 +81,7 @@ but the contents viewed as characters do change. ;;; @ end ;;; -(provide 'poem-xm) +(require 'product) +(product-provide (provide 'poem-xm) (require 'apel-ver)) ;;; poem-xm.el ends here