summaryrefslogtreecommitdiff
path: root/lisp/arc-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/arc-mode.el')
-rw-r--r--lisp/arc-mode.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el
index 0085c13e47e..cc9f10531e7 100644
--- a/lisp/arc-mode.el
+++ b/lisp/arc-mode.el
@@ -526,6 +526,10 @@ archive.
(make-local-variable 'local-enable-local-variables)
(setq local-enable-local-variables nil)
+ ;; Prevent loss of data when saving the file.
+ (make-local-variable 'file-precious-flag)
+ (setq file-precious-flag t)
+
(make-local-variable 'archive-read-only)
;; Archives which are inside other archives and whose
;; names are invalid for this OS, can't be written.