From f38cec78b65a7933dce878e4e748b25ba4d0c2d8 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Mon, 18 Jul 2005 10:46:17 +0000 Subject: [PATCH] (tar-subfile-save-buffer): Use `insert-buffer-substring', not `insert-buffer'. --- lisp/tar-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index 041f0fddc1a..7da14387738 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el @@ -1120,7 +1120,7 @@ to make your changes permanent." (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 @@ to make your changes permanent." (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)) -- 2.11.4.GIT