]> git.eshelyaron.com Git - emacs.git/commitdiff
(tai-viet-composition-function): Fix
authorKenichi Handa <handa@m17n.org>
Tue, 25 Dec 2007 10:50:26 +0000 (10:50 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 25 Dec 2007 10:50:26 +0000 (10:50 +0000)
arguments.

lisp/language/tv-util.el

index c7e8f8da97e319991b770a1b29a1563824358459..312ee1f41a32f96868ccc2da98ef5de4fe1b481c 100644 (file)
 
 
 ;;;###autoload
-(defun tai-viet-composition-function (pos &optional string)
-  (let (to)
-    (if string
-       (progn
-         (if (string-match tai-viet-re string pos)
-             (tai-viet-compose-string pos (match-end 0) string)
-           (1+ pos)))
-      (goto-char pos)
-      (if (looking-at tai-viet-re)
-         (tai-viet-compose-region pos (match-end 0))
-       (1+ pos)))))
+(defun tai-viet-composition-function (from to font-object string)
+  (if string
+      (if (string-match tai-viet-re string from)
+         (tai-viet-compose-string from (match-end 0) string))
+    (goto-char from)
+    (if (looking-at tai-viet-re)
+       (tai-viet-compose-region from (match-end 0)))))
 
 ;;
 (provide 'tai-viet-util)