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

lisp/language/tibet-util.el

index 5a9a1924de5196c9111332cb3d5acf97580e7743..37a0f49493cbf9592c7546a70d5aa91b3243896e 100644 (file)
@@ -444,9 +444,13 @@ See also docstring of the function tibetan-compose-region."
        (work-buf (get-buffer-create " *tibetan-work*")))
     (set-buffer work-buf)
     (erase-buffer)
-    (insert-buffer-substring old-buf from to)
+    (if (stringp from)
+       (insert from)
+      (insert-buffer-substring old-buf from to))
     (if (not tibetan-decomposed-temp)
-       (tibetan-decompose-region (point-min) (point-max)))))
+       (tibetan-decompose-region (point-min) (point-max)))
+    ;; Should return nil as annotations.
+    nil))
 
 (provide 'language/tibet-util)