# HG changeset patch # User Kenichi Handa # Date 863420428 0 # Node ID 081f940a8d1f19ee1b60abd5cc1a5cd581ffe408 # Parent ece62fdeeebbc7b5aceee7554ee5bfa7857f4023 (viqr-pre-write-conversion): Make it work for the case the arg FROM is a string. diff -r ece62fdeeebb -r 081f940a8d1f lisp/language/viet-util.el --- a/lisp/language/viet-util.el Mon May 12 07:00:26 1997 +0000 +++ b/lisp/language/viet-util.el Mon May 12 07:00:28 1997 +0000 @@ -275,8 +275,12 @@ (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)