Mercurial > emacs
changeset 64431:4c5a14fead4a
(tar-subfile-save-buffer): Use `insert-buffer-substring', not `insert-buffer'.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Mon, 18 Jul 2005 10:46:17 +0000 |
parents | 52b011251c32 |
children | cd3c7f95237e |
files | lisp/tar-mode.el |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/tar-mode.el Mon Jul 18 10:24:58 2005 +0000 +++ b/lisp/tar-mode.el Mon Jul 18 10:46:17 2005 +0000 @@ -1120,7 +1120,7 @@ (descriptor tar-superior-descriptor) subfile-size) ;; We must make the current buffer unibyte temporarily to avoid - ;; multibyte->unibyte conversion in `insert-buffer'. + ;; multibyte->unibyte conversion in `insert-buffer-substring'. (set-buffer-multibyte nil) (setq subfile-size (buffer-size)) (set-buffer tar-superior-buffer) @@ -1144,7 +1144,7 @@ (delete-region data-start data-end) ;; insert the new data... (goto-char data-start) - (insert-buffer subfile) + (insert-buffer-substring subfile) (setq subfile-size (encode-coding-region data-start (+ data-start subfile-size) coding))