]> git.eshelyaron.com Git - emacs.git/commitdiff
(quail-japanese-kanji-kkc): Adjusted for the change of quail.el.
authorKenichi Handa <handa@m17n.org>
Thu, 16 Jul 1998 00:14:44 +0000 (00:14 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 16 Jul 1998 00:14:44 +0000 (00:14 +0000)
(quail-japanese-switch-package): Likewise.

leim/quail/japanese.el

index 13115b7cf98005406c05acffee73beaebef4585a..b2e0a459d08bfcd54cb3298280e517f1dd6cf967 100644 (file)
        (to (overlay-end quail-conv-overlay))
        newfrom)
     (quail-delete-overlays)
-    (setq overriding-terminal-local-map nil)
-    (kkc-region from to 'quail-japanese-kkc-mode-exit)))
-
-;; Function to call on exiting KKC mode.  ARG is nil if KKC mode is
-;; exited normally, else ARG is a cons (FROM . TO) where FROM and TO
-;; specify a region not yet processed.
-(defun quail-japanese-kkc-mode-exit (arg)
-  (if arg
-      (progn
-       (setq overriding-terminal-local-map (quail-conversion-keymap))
-       (move-overlay quail-conv-overlay (car arg) (cdr arg)))
-    (run-hooks 'input-method-after-insert-chunk-hook)))
+    (let ((result (kkc-region from to)))
+      (move-overlay quail-conv-overlay (- (point) result) (point)))
+    (setq quail-converting nil)))
 
 (defun quail-japanese-self-insert-and-switch-to-alpha (key idx)
   (quail-delete-region)
 (defun quail-japanese-switch-package (key idx)
   (let ((pkg (cdr (assq (aref key (1- idx)) quail-japanese-switch-table))))
     (if (null pkg)
-       (error "No package to be switched")
-      (setq overriding-terminal-local-map nil)
-      (quail-delete-region)
+       (quail-error "No package to be switched")
       (if (stringp pkg)
          (activate-input-method pkg)
        (if (string= (car pkg) current-input-method)