Coding system fix for tar-untar-buffer (Bug#8870).
authorJambunathan K <kjambunathan@gmail.com>
Mon, 27 Jun 2011 21:12:17 +0000 (17:12 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 27 Jun 2011 21:12:17 +0000 (17:12 -0400)
* lisp/tar-mode.el (tar-untar-buffer): Set coding-system-for-write
to no-conversion.

lisp/ChangeLog
lisp/tar-mode.el

index 8fe51fc..7861d3d 100644 (file)
@@ -1,3 +1,16 @@
+2011-06-27  Jambunathan K  <kjambunathan@gmail.com>
+
+       * tar-mode.el (tar-untar-buffer): Set coding-system-for-write to
+       no-conversion (Bug#8870).
+
+2011-06-27  Chong Yidong  <cyd@stupidchicken.com>
+
+       * mouse.el: Rebind mouse-2 to mouse-yank-at-click; use an option
+       for primary insertion.  Suggested by David De La Harpe Golden.
+       (mouse-yank-primary): New option.
+       (mouse-yank-at-click): Obey it.
+       (mouse-yank-primary): Call mouse-yank-at-click.
+
 2011-06-27  Martin Rudalics  <rudalics@gmx.at>
 
        * window.el (window-right, window-left, window-child)
index 39855a1..6217132 100644 (file)
@@ -474,7 +474,8 @@ MODE should be an integer which is a file mode value."
             (if (and dir (not (file-exists-p dir)))
                 (make-directory dir t))
             (unless (file-directory-p name)
-              (write-region start end name))
+             (let ((coding-system-for-write 'no-conversion))
+               (write-region start end name)))
             (set-file-modes name (tar-header-mode descriptor))))))))
 
 (defun tar-summarize-buffer ()