Mercurial > emacs
changeset 17777:081f940a8d1f
(viqr-pre-write-conversion): Make it work
for the case the arg FROM is a string.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 12 May 1997 07:00:28 +0000 |
parents | ece62fdeeebb |
children | c3ff4c535c9c |
files | lisp/language/viet-util.el |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)