OSDN Git Service

fix that egg-sim did not work fix-egg-sim-Spike
authorMitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
Wed, 28 Jan 2015 05:18:52 +0000 (14:18 +0900)
committerMitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
Wed, 28 Jan 2015 05:18:52 +0000 (14:18 +0900)
C-^ (egg-sim) did not work.
Because ISO-8859-3 has voids in the charset.
But egg-sim forgot it, (make-char) occurred an error.
So added (ignore-errors) in (make-char-list).

version tsunagi-5.0.2.0

modified:   ChangeLog
new file:   NEWS
modified:   egg-sim.el
modified:   egg.el

ChangeLog
NEWS [new file with mode: 0644]
egg-sim.el
egg.el

index 03a441d..38af4b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,12 @@
 2015-01-28  Mitsutoshi NAKANO  <bkbin005@rinku.zaq.ne.jp>
 
+       * egg-sim.el(make-char-list): ignore-errors in make-char
+         Please see:
+         http://sourceforge.jp/projects/tamago-tsunagi/lists/archive/misc/2015-January/000029.html
+       * egg.el(egg-version): up from 5.0.1.0 to 5.0.2.0
        * .gitignore: ignored TAGS
        * Makefile.in(tags): added tags entry
+       * NEWS(5.0.2.0): created
 
 2014-12-15  Mitsutoshi NAKANO  <bkbin005@rinku.zaq.ne.jp>
 
diff --git a/NEWS b/NEWS
new file mode 100644 (file)
index 0000000..0657d7e
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,8 @@
+NEWS about tamago-tsunagi
+=========================
+
+## 5.0.2.0 Mitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
+
+HotFix: C-^ (egg-sim) does not work.  So amended quickly.
+Please see
+http://sourceforge.jp/projects/tamago-tsunagi/lists/archive/misc/2015-January/000029.html
index c91f9b7..54343d7 100644 (file)
@@ -4,12 +4,10 @@
 ;; Copyright (C) 2000 Electrotechnical Laboratory, JAPAN.
 ;; Licensed to the Free Software Foundation.
 ;; Copyright (C) 2000 TOMURA Satoru <tomura@etl.go.jp>
-
+;;               2015 Mitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
 
 ;; Author: TOMURA Satoru <tomura@etl.go.jp>
 
-;; Maintainer: TOMURA Satoru <tomura@etl.go.jp>
-
 ;; Keywords: mule, multilingual, input method
 
 ;; This file is part of EGG.
 
 (provide 'egg-sim)
 
+;;; modified 2015.01.28 Mitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
+;;; ignore-errors in make-char
+;;; Please see:
+;;; http://sourceforge.jp/projects/tamago-tsunagi/lists/archive/misc/2015-January/000029.html
+;;; http://www.gnu.org/software/emacs/manual/html_node/elisp/Handling-Errors.html
 (defun make-char-list (charset &optional from to)
   (let ((result nil)
        (chars (charset-chars charset))
@@ -56,8 +59,8 @@
         (<= to max)
         (cond ((= (charset-dimension charset) 1)
                (while (<= from to)
-                 (setq result (cons (char-to-string
-                                     (make-char charset to))
+                 (setq result (cons (ignore-errors (char-to-string
+                                                    (make-char charset to)))
                                     result)
                        to (1- to)))
                result)
@@ -65,8 +68,9 @@
                (while (<= from to)
                  (let ((code max))
                    (while (<= min code)
-                     (setq result (cons (char-to-string
-                                         (make-char charset to code))
+                     (setq result (cons (ignore-errors
+                                         (char-to-string
+                                          (make-char charset to code)))
                                         result)
                            code (1- code))))
                  (setq to (1- to)))
diff --git a/egg.el b/egg.el
index a4abfcf..4d29251 100644 (file)
--- a/egg.el
+++ b/egg.el
@@ -1,12 +1,10 @@
 ;;; egg.el --- EGG Input Method Architecture
 
-;; Copyright (C) 1999-2014 Free Software Foundation, Inc
+;; Copyright (C) 1999-2015 Free Software Foundation, Inc
 
 ;; Author: NIIBE Yutaka <gniibe@chroot.org>
 ;;         KATAYAMA Yoshio <kate@pfu.co.jp>
 
-;; Maintainer: TOMURA Satoru <tomura@etl.go.jp>
-
 ;; Keywords: mule, multilingual, input method
 
 ;; This file is part of EGG.
@@ -30,7 +28,7 @@
 
 ;;; Code:
 
-(defconst egg-version "5.0.1.0"
+(defconst egg-version "5.0.2.0"
   "Version number for this version of Tamago.")
 
 (defconst egg-tsunagi-version egg-version