diff options
| author | Chong Yidong | 2009-11-07 18:19:48 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-11-07 18:19:48 +0000 |
| commit | 6960d7b9bd5f7a3de26bc79ef2686a96f69f86ef (patch) | |
| tree | 7d2727b300035f1f28dab53f3ca9737c74efe1e4 | |
| parent | b42b2189a37b5f5186d1731acf129ba9a3c15ff7 (diff) | |
| download | emacs-6960d7b9bd5f7a3de26bc79ef2686a96f69f86ef.tar.gz emacs-6960d7b9bd5f7a3de26bc79ef2686a96f69f86ef.zip | |
* tar-mode.el (tar-copy): Call write-region on the right buffer
(Bug#4857).
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/tar-mode.el | 10 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0d7829302fd..81e6b9f10b2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-11-07 Chong Yidong <cyd@stupidchicken.com> | 1 | 2009-11-07 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * tar-mode.el (tar-copy): Call write-region on the right buffer | ||
| 4 | (Bug#4857). | ||
| 5 | |||
| 3 | * mail/rmailsum.el (rmail-summary-rmail-update): Call linum-update | 6 | * mail/rmailsum.el (rmail-summary-rmail-update): Call linum-update |
| 4 | by hand, if necessary (Bug#4878). | 7 | by hand, if necessary (Bug#4878). |
| 5 | 8 | ||
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index 0e681f56702..eb7054d8844 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el | |||
| @@ -909,12 +909,14 @@ the current tar-entry." | |||
| 909 | (end (+ start size)) | 909 | (end (+ start size)) |
| 910 | (inhibit-file-name-handlers inhibit-file-name-handlers) | 910 | (inhibit-file-name-handlers inhibit-file-name-handlers) |
| 911 | (inhibit-file-name-operation inhibit-file-name-operation)) | 911 | (inhibit-file-name-operation inhibit-file-name-operation)) |
| 912 | (save-restriction | 912 | (with-current-buffer |
| 913 | (widen) | 913 | (if (tar-data-swapped-p) tar-data-buffer (current-buffer)) |
| 914 | ;; Inhibit compressing a subfile again if *both* name and | 914 | ;; Inhibit compressing a subfile again if *both* name and |
| 915 | ;; to-file are handled by jka-compr | 915 | ;; to-file are handled by jka-compr |
| 916 | (if (and (eq (find-file-name-handler name 'write-region) 'jka-compr-handler) | 916 | (if (and (eq (find-file-name-handler name 'write-region) |
| 917 | (eq (find-file-name-handler to-file 'write-region) 'jka-compr-handler)) | 917 | 'jka-compr-handler) |
| 918 | (eq (find-file-name-handler to-file 'write-region) | ||
| 919 | 'jka-compr-handler)) | ||
| 918 | (setq inhibit-file-name-handlers | 920 | (setq inhibit-file-name-handlers |
| 919 | (cons 'jka-compr-handler | 921 | (cons 'jka-compr-handler |
| 920 | (and (eq inhibit-file-name-operation 'write-region) | 922 | (and (eq inhibit-file-name-operation 'write-region) |