aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/tar-mode.el23
1 files changed, 17 insertions, 6 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index 613dbdb723e..a050f51fa07 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -93,27 +93,38 @@
93 93
94;;; Code: 94;;; Code:
95 95
96(defvar tar-anal-blocksize 20 96(defgroup tar nil
97 "Simple editing of tar files."
98 :prefix "tar-"
99 :group 'data)
100
101(defcustom tar-anal-blocksize 20
97 "*The blocksize of tar files written by Emacs, or nil, meaning don't care. 102 "*The blocksize of tar files written by Emacs, or nil, meaning don't care.
98The blocksize of a tar file is not really the size of the blocks; rather, it is 103The blocksize of a tar file is not really the size of the blocks; rather, it is
99the number of blocks written with one system call. When tarring to a tape, 104the number of blocks written with one system call. When tarring to a tape,
100this is the size of the *tape* blocks, but when writing to a file, it doesn't 105this is the size of the *tape* blocks, but when writing to a file, it doesn't
101matter much. The only noticeable difference is that if a tar file does not 106matter much. The only noticeable difference is that if a tar file does not
102have a blocksize of 20, tar will tell you that; all this really controls is 107have a blocksize of 20, tar will tell you that; all this really controls is
103how many null padding bytes go on the end of the tar file.") 108how many null padding bytes go on the end of the tar file."
109 :type '(choice integer (const nil))
110 :group 'tar)
104 111
105(defvar tar-update-datestamp nil 112(defcustom tar-update-datestamp nil
106 "*Non-nil means tar-mode should play fast and loose with sub-file datestamps. 113 "*Non-nil means tar-mode should play fast and loose with sub-file datestamps.
107If this is true, then editing and saving a tar file entry back into its 114If this is true, then editing and saving a tar file entry back into its
108tar file will update its datestamp. If false, the datestamp is unchanged. 115tar file will update its datestamp. If false, the datestamp is unchanged.
109You may or may not want this - it is good in that you can tell when a file 116You may or may not want this - it is good in that you can tell when a file
110in a tar archive has been changed, but it is bad for the same reason that 117in a tar archive has been changed, but it is bad for the same reason that
111editing a file in the tar archive at all is bad - the changed version of 118editing a file in the tar archive at all is bad - the changed version of
112the file never exists on disk.") 119the file never exists on disk."
120 :type 'boolean
121 :group 'tar)
113 122
114(defvar tar-mode-show-date nil 123(defcustom tar-mode-show-date nil
115 "*Non-nil means Tar mode should show the date/time of each subfile. 124 "*Non-nil means Tar mode should show the date/time of each subfile.
116This information is useful, but it takes screen space away from file names.") 125This information is useful, but it takes screen space away from file names."
126 :type 'boolean
127 :group 'tar)
117 128
118(defvar tar-parse-info nil) 129(defvar tar-parse-info nil)
119(defvar tar-header-offset nil) 130(defvar tar-header-offset nil)