]> git.eshelyaron.com Git - emacs.git/commitdiff
(thai-pre-write-conversion): Make it work
authorKenichi Handa <handa@m17n.org>
Mon, 12 May 1997 07:00:25 +0000 (07:00 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 12 May 1997 07:00:25 +0000 (07:00 +0000)
for the case the arg FROM is a string.

lisp/language/thai-util.el

index a97fad0ae7c3feaffdfcbf86419e1cb2a98542ac..334f7e41386418d24b4b03344ac8a1e199abc0b9 100644 (file)
@@ -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)