diff options
| author | Richard M. Stallman | 1998-10-17 19:22:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-10-17 19:22:41 +0000 |
| commit | b9ca3cdb313751269733f43f55bcb01bd95454ce (patch) | |
| tree | 69f72a253591f739c7cf1e5ec345eef741593503 | |
| parent | 938c647261b4f3c2a97507d8c98218c6ee92eff9 (diff) | |
| download | emacs-b9ca3cdb313751269733f43f55bcb01bd95454ce.tar.gz emacs-b9ca3cdb313751269733f43f55bcb01bd95454ce.zip | |
(tar-mode): Locally set file-precious-flag.
| -rw-r--r-- | lisp/tar-mode.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index 33d01f8a3a5..b96f66c79c4 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el | |||
| @@ -601,6 +601,9 @@ See also: variables `tar-update-datestamp' and `tar-anal-blocksize'. | |||
| 601 | (setq local-enable-local-variables nil) | 601 | (setq local-enable-local-variables nil) |
| 602 | (make-local-variable 'next-line-add-newlines) | 602 | (make-local-variable 'next-line-add-newlines) |
| 603 | (setq next-line-add-newlines nil) | 603 | (setq next-line-add-newlines nil) |
| 604 | ;; Prevent loss of data when saving the file. | ||
| 605 | (make-local-variable 'file-precious-flag) | ||
| 606 | (setq file-precious-flag t) | ||
| 604 | (setq major-mode 'tar-mode) | 607 | (setq major-mode 'tar-mode) |
| 605 | (setq mode-name "Tar") | 608 | (setq mode-name "Tar") |
| 606 | (use-local-map tar-mode-map) | 609 | (use-local-map tar-mode-map) |