1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-31 20:02:42 +00:00

(tai-viet-composition-function): Fix

arguments.
This commit is contained in:
Kenichi Handa 2007-12-25 10:50:26 +00:00
parent 00ddf712fb
commit 268dff9412

View File

@ -131,17 +131,13 @@
;;;###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)