summaryrefslogtreecommitdiff
path: root/leim
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2007-01-12 11:34:15 +0000
committerKenichi Handa <handa@m17n.org>2007-01-12 11:34:15 +0000
commit82bc024e0ec593970ee403b464bba175443ead0d (patch)
treec70d867860880829de52df81a2a17f5e784165b6 /leim
parent690cd276eb0bf7acda3b21105e8272207ed451b2 (diff)
downloademacs-82bc024e0ec593970ee403b464bba175443ead0d.tar.gz
(ucs-input-method): Signal an error for a
Unicode character that is not yet supported.
Diffstat (limited to 'leim')
-rw-r--r--leim/quail/uni-input.el14
1 files changed, 9 insertions, 5 deletions
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 @@
(let* ((n (string-to-number (apply 'string
(cdr (nreverse events)))
16))
- (c (decode-char 'ucs n))
- (status (make-vector 9 nil)))
+ (c (decode-char 'ucs n)))
(if c
(list c)
- (aset status 0 n)
- (string-to-list (ccl-execute-on-string
- 'utf-8-ccl-encode status ""))))))
+ ;; The intention of the following code is to insert
+ ;; a correct UTF-8 sequence by raw bytes, but
+ ;; currently it doesn't work.
+ ;; (let ((status (make-vector 9 nil)))
+ ;; (aset status 0 n)
+ ;; (string-to-list (ccl-execute-on-string
+ ;; 'utf-8-ccl-encode status "")))
+ (error "Character U+%04X is not yet supported" n)))))
(quail-delete-overlays)
(set-buffer-modified-p modified-p)
(run-hooks 'input-method-after-insert-chunk-hook)))))