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

lisp/language/viet-util.el

index 356a130efc31bfaa8c653a3cb6c9736b268975bf..1da3de12a4afee2ef180d3998eb7f9fe719a5698 100644 (file)
@@ -275,8 +275,12 @@ positions (integers or markers) specifying the stretch of the region."
        (work-buf (get-buffer-create " *viet-work*")))
     (set-buffer work-buf)
     (erase-buffer)
-    (insert-buffer-substring old-buf from to)
-    (viet-encode-viqr-region (point-min) (point-max))))
+    (if (stringp from)
+       (insert from)
+      (insert-buffer-substring old-buf from to))
+    (viet-encode-viqr-region (point-min) (point-max))
+    ;; Should return nil as annotations.
+    nil))
 
 ;;;
 (provide 'language/viet-util)