aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1996-03-06 07:49:55 +0000
committerRichard M. Stallman1996-03-06 07:49:55 +0000
commit766052779be3f23e72f82b38bc1ef5a46b07215c (patch)
treefe3c2e41174a7eaa409eaada31cd7eb9db4a3ac5 /lisp
parent18b1fecd4abc8d549385b3c3df65940b55e4cb6f (diff)
downloademacs-766052779be3f23e72f82b38bc1ef5a46b07215c.tar.gz
emacs-766052779be3f23e72f82b38bc1ef5a46b07215c.zip
(tar-subfile-mode): Doc fix.
(tar-extract): Call tar-subfile-mode after setting buffer-read-only and the buffer modified flag.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/tar-mode.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index 1bc65f094ca..ce8ed3b6184 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -602,9 +602,9 @@ See also: variables `tar-update-datestamp' and `tar-anal-blocksize'.
602 602
603(defun tar-subfile-mode (p) 603(defun tar-subfile-mode (p)
604 "Minor mode for editing an element of a tar-file. 604 "Minor mode for editing an element of a tar-file.
605This mode redefines the save-buffer command to save the current buffer back 605This mode arranges for \"saving\" this buffer to write the data
606into its associated tar-file buffer. You must save that buffer to actually 606into the tar-file buffer that it came from. The changes will actually
607save your changes to disk." 607appear on disk when you save the tar-file's buffer."
608 (interactive "P") 608 (interactive "P")
609 (or (and (boundp 'tar-superior-buffer) tar-superior-buffer) 609 (or (and (boundp 'tar-superior-buffer) tar-superior-buffer)
610 (error "This buffer is not an element of a tar file")) 610 (error "This buffer is not an element of a tar file"))
@@ -731,9 +731,9 @@ save your changes to disk."
731 (make-local-variable 'tar-superior-descriptor) 731 (make-local-variable 'tar-superior-descriptor)
732 (setq tar-superior-buffer tar-buffer) 732 (setq tar-superior-buffer tar-buffer)
733 (setq tar-superior-descriptor descriptor) 733 (setq tar-superior-descriptor descriptor)
734 (tar-subfile-mode 1) 734 (setq buffer-read-only read-only-p)
735 (setq buffer-read-only read-only-p) 735 (set-buffer-modified-p nil)
736 (set-buffer-modified-p nil)) 736 (tar-subfile-mode 1))
737 (set-buffer tar-buffer)) 737 (set-buffer tar-buffer))
738 (narrow-to-region 1 tar-header-offset))) 738 (narrow-to-region 1 tar-header-offset)))
739 (if view-p 739 (if view-p