# HG changeset patch # User Kenichi Handa # Date 900985360 0 # Node ID b8d669900d551c5765fb5c2d44fb10100f8f2882 # Parent 9ace3533378986bd7e7dd296d9cacac60a0bd2f1 (quail-japanese-kanji-kkc): Handle the case that conversion is cancelled in kkc-region. (quail-japanese-switch-package): Fix previous change. diff -r 9ace35333789 -r b8d669900d55 leim/quail/japanese.el --- a/leim/quail/japanese.el Tue Jul 21 01:42:40 1998 +0000 +++ b/leim/quail/japanese.el Tue Jul 21 01:42:40 1998 +0000 @@ -76,8 +76,9 @@ newfrom) (quail-delete-overlays) (let ((result (kkc-region from to))) - (move-overlay quail-conv-overlay (- (point) result) (point))) - (setq quail-converting nil))) + (move-overlay quail-conv-overlay from (point)) + (if (= (+ from result) (point)) + (setq quail-converting nil))))) (defun quail-japanese-self-insert-and-switch-to-alpha (key idx) (quail-delete-region) @@ -95,6 +96,8 @@ (put 'quail-japanese-package-saved 'permanent-local t) (defun quail-japanese-switch-package (key idx) + (quail-delete-region) + (setq quail-converting nil) (let ((pkg (cdr (assq (aref key (1- idx)) quail-japanese-switch-table)))) (if (null pkg) (quail-error "No package to be switched")