From d64a0ef70903234ec196cdc7fbe6fceabcd6a953 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 26 Oct 1998 08:00:11 +0000 Subject: [PATCH] (pre-write-encode-hz): Cancel previous change, use generate-new-buffer instead of get-buffer-create. --- lisp/language/chinese.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/language/chinese.el b/lisp/language/chinese.el index bf50795a691..c51f955840e 100644 --- a/lisp/language/chinese.el +++ b/lisp/language/chinese.el @@ -101,12 +101,12 @@ (defun pre-write-encode-hz (from to) (let ((buf (current-buffer))) - (with-temp-buffer - (if (stringp from) - (insert from) - (insert-buffer-substring buf from to)) - (let (last-coding-system-used) - (encode-hz-region 1 (point-max)))) + (set-buffer (generate-new-buffer " *temp*")) + (if (stringp from) + (insert from) + (insert-buffer-substring buf from to)) + (let (last-coding-system-used) + (encode-hz-region 1 (point-max))) nil)) (set-language-info-alist -- 2.39.2