From 938c647261b4f3c2a97507d8c98218c6ee92eff9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 17 Oct 1998 19:21:37 +0000 Subject: [PATCH] (archive-mode): Locally set file-precious-flag. --- lisp/arc-mode.el | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.39.2