]> code.delx.au - gnu-emacs/blobdiff - lisp/tar-mode.el
Add defgroups, and use defcustom.
[gnu-emacs] / lisp / tar-mode.el
index a444a565fefb4c6bcc8339c0e285a58a3af2fccf..5776680d6cbf62344551436b5be46b7e92ff3479 100644 (file)
@@ -1196,7 +1196,8 @@ Leaves the region wide."
        ;; I suppose this is run in a context where changing the buffer is bad.
        ;; (tar-pad-to-blocksize)
        (write-region tar-header-offset (point-max) buffer-file-name nil t)
-       (tar-clear-modification-flags))
+       (tar-clear-modification-flags)
+       (set-buffer-modified-p nil))
     (narrow-to-region 1 tar-header-offset))
   ;; return T because we've written the file.
   t)