# HG changeset patch # User Kenichi Handa # Date 863420425 0 # Node ID a4bf913d6caf9268c8ae356d1290b753561e2d56 # Parent ade41b936c3ed546a217274aff894bb91fae5e2f (thai-pre-write-conversion): Make it work for the case the arg FROM is a string. diff -r ade41b936c3e -r a4bf913d6caf lisp/language/thai-util.el --- a/lisp/language/thai-util.el Mon May 12 07:00:21 1997 +0000 +++ b/lisp/language/thai-util.el Mon May 12 07:00:25 1997 +0000 @@ -164,8 +164,12 @@ (work-buf (get-buffer-create " *thai-work*"))) (set-buffer work-buf) (erase-buffer) - (insert-buffer-substring old-buf from to) - (decompose-region (point-min) (point-max)))) + (if (stringp from) + (insert from) + (insert-buffer-substring old-buf from to)) + (decompose-region (point-min) (point-max)) + ;; Should return nil as annotations. + nil)) ;; (provide 'language/thai-util)