]> git.eshelyaron.com Git - emacs.git/commitdiff
(tar-mode): Use write-contents-functions, not write-contents-hooks.
authorRichard M. Stallman <rms@gnu.org>
Wed, 27 Oct 2004 17:40:19 +0000 (17:40 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 27 Oct 2004 17:40:19 +0000 (17:40 +0000)
lisp/tar-mode.el

index 62686d026c119fb8af7dffd8ff4d97b5300ed827..42dcc0f7a2659a21f02e912b07a458f588480abf 100644 (file)
@@ -578,7 +578,7 @@ See also: variables `tar-update-datestamp' and `tar-anal-blocksize'.
   ;; Prevent loss of data when saving the file.
   (set (make-local-variable 'file-precious-flag) t)
   (auto-save-mode 0)
-  (set (make-local-variable 'write-contents-hooks) '(tar-mode-write-file))
+  (set (make-local-variable 'write-contents-functions) '(tar-mode-write-file))
   (widen)
   (if (and (boundp 'tar-header-offset) tar-header-offset)
       (narrow-to-region (point-min) (byte-to-position tar-header-offset))