Mercurial > emacs
changeset 23547:77c967512714
(pre-write-encode-hz): Cancel previous
change, use generate-new-buffer instead of get-buffer-create.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 26 Oct 1998 08:00:11 +0000 |
parents | d180b9c69e4a |
children | 87736ae8e5ff |
files | lisp/language/chinese.el |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/language/chinese.el Mon Oct 26 08:00:11 1998 +0000 +++ b/lisp/language/chinese.el Mon Oct 26 08:00:11 1998 +0000 @@ -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