summaryrefslogtreecommitdiff
path: root/lisp/language/viet-util.el
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1998-10-26 08:00:11 +0000
committerKenichi Handa <handa@m17n.org>1998-10-26 08:00:11 +0000
commit319fb5a9bf9e8ae76e7ad9eb0953a6581fc44f9e (patch)
treedc855621963fc53185d556b8a930403ee3c46678 /lisp/language/viet-util.el
parent61a398eac88ecd571233d50115a910390fb5018d (diff)
downloademacs-319fb5a9bf9e8ae76e7ad9eb0953a6581fc44f9e.tar.gz
(viqr-pre-write-conversion): Cancel previous
change, use generate-new-buffer instead of get-buffer-create.
Diffstat (limited to 'lisp/language/viet-util.el')
-rw-r--r--lisp/language/viet-util.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/language/viet-util.el b/lisp/language/viet-util.el
index f90dc494df7..4a4022d2b62 100644
--- a/lisp/language/viet-util.el
+++ b/lisp/language/viet-util.el
@@ -284,11 +284,11 @@ positions (integers or markers) specifying the stretch of the region."
;;;###autoload
(defun viqr-pre-write-conversion (from to)
(let ((old-buf (current-buffer)))
- (with-temp-buffer
- (if (stringp from)
- (insert from)
- (insert-buffer-substring old-buf from to))
- (viet-encode-viqr-region (point-min) (point-max)))
+ (set-buffer (generate-new-buffer " *temp*"))
+ (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))