aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKenichi Handa2000-07-17 23:52:42 +0000
committerKenichi Handa2000-07-17 23:52:42 +0000
commit44bec1714f3b8df0973cc79350608ff380b3de07 (patch)
tree7df4640b05e0d4d9e8a147f206c435368bb08a58 /lisp
parent269b4dcb0afbf96056d6792b99ce0a8468564783 (diff)
downloademacs-44bec1714f3b8df0973cc79350608ff380b3de07.tar.gz
emacs-44bec1714f3b8df0973cc79350608ff380b3de07.zip
(kkc-after-update-conversion-functions): New variable.
(kkc-update-conversion): Run functions in it at the tail.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/international/kkc.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/international/kkc.el b/lisp/international/kkc.el
index 70c7d501e2a..4012a6ed3e6 100644
--- a/lisp/international/kkc.el
+++ b/lisp/international/kkc.el
@@ -212,6 +212,14 @@ area while indicating the current selection by `<N>'."
212(defvar kkc-converting nil) 212(defvar kkc-converting nil)
213 213
214;;;###autoload 214;;;###autoload
215(defvar kkc-after-update-conversion-functions nil
216 "Functions to run after a conversion is selected in `japanese' input method.
217With this input method, a user can select a proper conversion from
218candidate list. Each time he changes the selection, functions in this
219list are called with two arguments; starting and ending buffer
220positions that contains the current selection.")
221
222;;;###autoload
215(defun kkc-region (from to) 223(defun kkc-region (from to)
216 "Convert Kana string in the current region to Kanji-Kana mixed string. 224 "Convert Kana string in the current region to Kanji-Kana mixed string.
217Users can select a desirable conversion interactively. 225Users can select a desirable conversion interactively.
@@ -635,7 +643,11 @@ and change the current conversion to the last one in the group."
635 (move-overlay kkc-overlay-head 643 (move-overlay kkc-overlay-head
636 (overlay-start kkc-overlay-head) pos) 644 (overlay-start kkc-overlay-head) pos)
637 (delete-region (point) (overlay-end kkc-overlay-tail))))) 645 (delete-region (point) (overlay-end kkc-overlay-tail)))))
638 (goto-char (overlay-end kkc-overlay-tail))) 646 (unwind-protect
647 (run-hook-with-args 'kkc-after-update-conversion-functions
648 (overlay-start kkc-overlay-head)
649 (overlay-end kkc-overlay-head))
650 (goto-char (overlay-end kkc-overlay-tail))))
639 651
640;; 652;;
641(provide 'kkc) 653(provide 'kkc)