* arc-mode.el (archive-mode): Add `archive-write-file' also for
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 20 Jun 2013 11:45:45 +0000 (13:45 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 20 Jun 2013 11:45:45 +0000 (13:45 +0200)
remote files.  (Bug#14652)

lisp/ChangeLog
lisp/arc-mode.el

index 4633e83..85626bf 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-20  Michael Albinus  <michael.albinus@gmx.de>
+
+       * arc-mode.el (archive-mode): Add `archive-write-file' also for
+       remote files.  (Bug#14652)
+
 2013-06-20  Juanma Barranquero  <lekktu@gmail.com>
 
        * cus-edit.el (custom-commands): Fix typos.
index 4fc04b7..5f001ad 100644 (file)
@@ -689,9 +689,7 @@ archive.
        (setq revert-buffer-function 'archive-mode-revert)
        (auto-save-mode 0)
 
-       ;; Remote archives are not written by a hook.
-       (if archive-remote nil
-         (add-hook 'write-contents-functions 'archive-write-file nil t))
+       (add-hook 'write-contents-functions 'archive-write-file nil t)
 
        (make-local-variable 'require-final-newline)
        (setq require-final-newline nil)