From d540cef3d979b963e7e20156f3aaae3405b3ab22 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 12 May 1997 07:00:25 +0000 Subject: (thai-pre-write-conversion): Make it work for the case the arg FROM is a string. --- lisp/language/thai-util.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/language/thai-util.el b/lisp/language/thai-util.el index a97fad0ae7c..334f7e41386 100644 --- a/lisp/language/thai-util.el +++ b/lisp/language/thai-util.el @@ -164,8 +164,12 @@ positions (integers or markers) specifying the region." (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) -- cgit v1.2.1