aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2007-01-12 11:34:23 +0000
committerKenichi Handa2007-01-12 11:34:23 +0000
commit88f698d97c579308b5d247766e9344bcb0d2edea (patch)
tree29e43b41406e9c6f7504fd47585b463a55b65ccc
parent37370cea413fbc327d9288823afead232c4bc2aa (diff)
downloademacs-88f698d97c579308b5d247766e9344bcb0d2edea.tar.gz
emacs-88f698d97c579308b5d247766e9344bcb0d2edea.zip
(ucs-input-method): Signal an error for a
Unicode character that is not yet supported.
-rw-r--r--leim/ChangeLog5
-rw-r--r--leim/quail/uni-input.el14
2 files changed, 14 insertions, 5 deletions
diff --git a/leim/ChangeLog b/leim/ChangeLog
index 57e8f626c61..7d09807bd54 100644
--- a/leim/ChangeLog
+++ b/leim/ChangeLog
@@ -1,3 +1,8 @@
12007-01-12 Kenichi Handa <handa@m17n.org>
2
3 * quail/uni-input.el (ucs-input-method): Signal an error for a
4 Unicode character that is not yet supported.
5
12006-12-26 Andreas Schwab <schwab@suse.de> 62006-12-26 Andreas Schwab <schwab@suse.de>
2 7
3 * Makefile.in (datarootdir): Define. 8 * Makefile.in (datarootdir): Define.
diff --git a/leim/quail/uni-input.el b/leim/quail/uni-input.el
index 1b4a3d3af1e..c24b6f65057 100644
--- a/leim/quail/uni-input.el
+++ b/leim/quail/uni-input.el
@@ -107,13 +107,17 @@
107 (let* ((n (string-to-number (apply 'string 107 (let* ((n (string-to-number (apply 'string
108 (cdr (nreverse events))) 108 (cdr (nreverse events)))
109 16)) 109 16))
110 (c (decode-char 'ucs n)) 110 (c (decode-char 'ucs n)))
111 (status (make-vector 9 nil)))
112 (if c 111 (if c
113 (list c) 112 (list c)
114 (aset status 0 n) 113 ;; The intention of the following code is to insert
115 (string-to-list (ccl-execute-on-string 114 ;; a correct UTF-8 sequence by raw bytes, but
116 'utf-8-ccl-encode status "")))))) 115 ;; currently it doesn't work.
116 ;; (let ((status (make-vector 9 nil)))
117 ;; (aset status 0 n)
118 ;; (string-to-list (ccl-execute-on-string
119 ;; 'utf-8-ccl-encode status "")))
120 (error "Character U+%04X is not yet supported" n)))))
117 (quail-delete-overlays) 121 (quail-delete-overlays)
118 (set-buffer-modified-p modified-p) 122 (set-buffer-modified-p modified-p)
119 (run-hooks 'input-method-after-insert-chunk-hook))))) 123 (run-hooks 'input-method-after-insert-chunk-hook)))))