]> git.eshelyaron.com Git - emacs.git/commitdiff
(tar-subfile-save-buffer): Use `insert-buffer-substring', not `insert-buffer'.
authorJuanma Barranquero <lekktu@gmail.com>
Mon, 18 Jul 2005 10:46:17 +0000 (10:46 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 18 Jul 2005 10:46:17 +0000 (10:46 +0000)
lisp/tar-mode.el

index 041f0fddc1a45725f6411ab4c86bdc0c120f763e..7da143877386b47f7572395ab626fd60d2b6054f 100644 (file)
@@ -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))