diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-10-17 19:21:37 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-10-17 19:21:37 +0000 |
commit | 938c647261b4f3c2a97507d8c98218c6ee92eff9 (patch) | |
tree | 06a15aa1756e8f2b1c150e7538bfb889fbeae618 /lisp/arc-mode.el | |
parent | 362ae0b3f87cb7ea1c901d76c7683bca56851699 (diff) | |
download | emacs-938c647261b4f3c2a97507d8c98218c6ee92eff9.tar.gz |
(archive-mode): Locally set file-precious-flag.
Diffstat (limited to 'lisp/arc-mode.el')
-rw-r--r-- | lisp/arc-mode.el | 4 |
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. |