diff options
| author | Stefan Monnier | 2020-04-03 13:34:18 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2020-04-03 13:58:33 -0400 |
| commit | 702a97ffb2cae9b739c6739cb6fb7dd18332c3e0 (patch) | |
| tree | 97757759d1e6256c1b44b8994944ac5dcdcdfea2 | |
| parent | 9b6d252a1806c4b73e43eaaecde3d7cdc38c4b1d (diff) | |
| download | emacs-702a97ffb2cae9b739c6739cb6fb7dd18332c3e0.tar.gz emacs-702a97ffb2cae9b739c6739cb6fb7dd18332c3e0.zip | |
* lisp/arc-mode.el: Remove redundant `:group`s
(archive-arc, archive-lzh, archive-zip, archive-zoo): Move them
to their corresponding defcustom.
(archive-7z): New group, that used to be missing.
| -rw-r--r-- | lisp/arc-mode.el | 99 |
1 files changed, 41 insertions, 58 deletions
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index f2dcb72eec1..796e2284af4 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el | |||
| @@ -108,22 +108,6 @@ | |||
| 108 | "Simple editing of archives." | 108 | "Simple editing of archives." |
| 109 | :group 'data) | 109 | :group 'data) |
| 110 | 110 | ||
| 111 | (defgroup archive-arc nil | ||
| 112 | "ARC-specific options to archive." | ||
| 113 | :group 'archive) | ||
| 114 | |||
| 115 | (defgroup archive-lzh nil | ||
| 116 | "LZH-specific options to archive." | ||
| 117 | :group 'archive) | ||
| 118 | |||
| 119 | (defgroup archive-zip nil | ||
| 120 | "ZIP-specific options to archive." | ||
| 121 | :group 'archive) | ||
| 122 | |||
| 123 | (defgroup archive-zoo nil | ||
| 124 | "ZOO-specific options to archive." | ||
| 125 | :group 'archive) | ||
| 126 | |||
| 127 | (defcustom archive-tmpdir | 111 | (defcustom archive-tmpdir |
| 128 | ;; make-temp-name is safe here because we use this name | 112 | ;; make-temp-name is safe here because we use this name |
| 129 | ;; to create a directory. | 113 | ;; to create a directory. |
| @@ -131,35 +115,35 @@ | |||
| 131 | (expand-file-name (if (eq system-type 'ms-dos) "ar" "archive.tmp") | 115 | (expand-file-name (if (eq system-type 'ms-dos) "ar" "archive.tmp") |
| 132 | temporary-file-directory)) | 116 | temporary-file-directory)) |
| 133 | "Directory for temporary files made by `arc-mode.el'." | 117 | "Directory for temporary files made by `arc-mode.el'." |
| 134 | :type 'directory | 118 | :type 'directory) |
| 135 | :group 'archive) | ||
| 136 | 119 | ||
| 137 | (defcustom archive-remote-regexp "^/[^/:]*[^/:.]:" | 120 | (defcustom archive-remote-regexp "^/[^/:]*[^/:.]:" |
| 138 | "Regexp recognizing archive files names that are not local. | 121 | "Regexp recognizing archive files names that are not local. |
| 139 | A non-local file is one whose file name is not proper outside Emacs. | 122 | A non-local file is one whose file name is not proper outside Emacs. |
| 140 | A local copy of the archive will be used when updating." | 123 | A local copy of the archive will be used when updating." |
| 141 | :type 'regexp | 124 | :type 'regexp) |
| 142 | :group 'archive) | ||
| 143 | 125 | ||
| 144 | (define-obsolete-variable-alias 'archive-extract-hooks | 126 | (define-obsolete-variable-alias 'archive-extract-hooks |
| 145 | 'archive-extract-hook "24.3") | 127 | 'archive-extract-hook "24.3") |
| 146 | (defcustom archive-extract-hook nil | 128 | (defcustom archive-extract-hook nil |
| 147 | "Hook run when an archive member has been extracted." | 129 | "Hook run when an archive member has been extracted." |
| 148 | :type 'hook | 130 | :type 'hook) |
| 149 | :group 'archive) | ||
| 150 | 131 | ||
| 151 | (defcustom archive-visit-single-files nil | 132 | (defcustom archive-visit-single-files nil |
| 152 | "If non-nil, opening an archive with a single file visits that file. | 133 | "If non-nil, opening an archive with a single file visits that file. |
| 153 | If nil, visiting such an archive displays the archive summary." | 134 | If nil, visiting such an archive displays the archive summary." |
| 154 | :version "25.1" | 135 | :version "25.1" |
| 155 | :type '(choice (const :tag "Visit the single file" t) | 136 | :type '(choice (const :tag "Visit the single file" t) |
| 156 | (const :tag "Show the archive summary" nil)) | 137 | (const :tag "Show the archive summary" nil))) |
| 157 | :group 'archive) | ||
| 158 | ;; ------------------------------ | 138 | ;; ------------------------------ |
| 159 | ;; Arc archive configuration | 139 | ;; Arc archive configuration |
| 160 | 140 | ||
| 161 | ;; We always go via a local file since there seems to be no reliable way | 141 | ;; We always go via a local file since there seems to be no reliable way |
| 162 | ;; to extract to stdout without junk getting added. | 142 | ;; to extract to stdout without junk getting added. |
| 143 | (defgroup archive-arc nil | ||
| 144 | "ARC-specific options to archive." | ||
| 145 | :group 'archive) | ||
| 146 | |||
| 163 | (defcustom archive-arc-extract | 147 | (defcustom archive-arc-extract |
| 164 | '("arc" "x") | 148 | '("arc" "x") |
| 165 | "Program and its options to run in order to extract an arc file member. | 149 | "Program and its options to run in order to extract an arc file member. |
| @@ -168,8 +152,7 @@ name will be added." | |||
| 168 | :type '(list (string :tag "Program") | 152 | :type '(list (string :tag "Program") |
| 169 | (repeat :tag "Options" | 153 | (repeat :tag "Options" |
| 170 | :inline t | 154 | :inline t |
| 171 | (string :format "%v"))) | 155 | (string :format "%v")))) |
| 172 | :group 'archive-arc) | ||
| 173 | 156 | ||
| 174 | (defcustom archive-arc-expunge | 157 | (defcustom archive-arc-expunge |
| 175 | '("arc" "d") | 158 | '("arc" "d") |
| @@ -178,8 +161,7 @@ Archive and member names will be added." | |||
| 178 | :type '(list (string :tag "Program") | 161 | :type '(list (string :tag "Program") |
| 179 | (repeat :tag "Options" | 162 | (repeat :tag "Options" |
| 180 | :inline t | 163 | :inline t |
| 181 | (string :format "%v"))) | 164 | (string :format "%v")))) |
| 182 | :group 'archive-arc) | ||
| 183 | 165 | ||
| 184 | (defcustom archive-arc-write-file-member | 166 | (defcustom archive-arc-write-file-member |
| 185 | '("arc" "u") | 167 | '("arc" "u") |
| @@ -188,11 +170,14 @@ Archive and member name will be added." | |||
| 188 | :type '(list (string :tag "Program") | 170 | :type '(list (string :tag "Program") |
| 189 | (repeat :tag "Options" | 171 | (repeat :tag "Options" |
| 190 | :inline t | 172 | :inline t |
| 191 | (string :format "%v"))) | 173 | (string :format "%v")))) |
| 192 | :group 'archive-arc) | ||
| 193 | ;; ------------------------------ | 174 | ;; ------------------------------ |
| 194 | ;; Lzh archive configuration | 175 | ;; Lzh archive configuration |
| 195 | 176 | ||
| 177 | (defgroup archive-lzh nil | ||
| 178 | "LZH-specific options to archive." | ||
| 179 | :group 'archive) | ||
| 180 | |||
| 196 | (defcustom archive-lzh-extract | 181 | (defcustom archive-lzh-extract |
| 197 | '("lha" "pq") | 182 | '("lha" "pq") |
| 198 | "Program and its options to run in order to extract an lzh file member. | 183 | "Program and its options to run in order to extract an lzh file member. |
| @@ -201,8 +186,7 @@ be added." | |||
| 201 | :type '(list (string :tag "Program") | 186 | :type '(list (string :tag "Program") |
| 202 | (repeat :tag "Options" | 187 | (repeat :tag "Options" |
| 203 | :inline t | 188 | :inline t |
| 204 | (string :format "%v"))) | 189 | (string :format "%v")))) |
| 205 | :group 'archive-lzh) | ||
| 206 | 190 | ||
| 207 | (defcustom archive-lzh-expunge | 191 | (defcustom archive-lzh-expunge |
| 208 | '("lha" "d") | 192 | '("lha" "d") |
| @@ -211,8 +195,7 @@ Archive and member names will be added." | |||
| 211 | :type '(list (string :tag "Program") | 195 | :type '(list (string :tag "Program") |
| 212 | (repeat :tag "Options" | 196 | (repeat :tag "Options" |
| 213 | :inline t | 197 | :inline t |
| 214 | (string :format "%v"))) | 198 | (string :format "%v")))) |
| 215 | :group 'archive-lzh) | ||
| 216 | 199 | ||
| 217 | (defcustom archive-lzh-write-file-member | 200 | (defcustom archive-lzh-write-file-member |
| 218 | '("lha" "a") | 201 | '("lha" "a") |
| @@ -221,8 +204,7 @@ Archive and member name will be added." | |||
| 221 | :type '(list (string :tag "Program") | 204 | :type '(list (string :tag "Program") |
| 222 | (repeat :tag "Options" | 205 | (repeat :tag "Options" |
| 223 | :inline t | 206 | :inline t |
| 224 | (string :format "%v"))) | 207 | (string :format "%v")))) |
| 225 | :group 'archive-lzh) | ||
| 226 | ;; ------------------------------ | 208 | ;; ------------------------------ |
| 227 | ;; Zip archive configuration | 209 | ;; Zip archive configuration |
| 228 | 210 | ||
| @@ -231,6 +213,10 @@ Archive and member name will be added." | |||
| 231 | (when 7z | 213 | (when 7z |
| 232 | (file-name-nondirectory 7z)))) | 214 | (file-name-nondirectory 7z)))) |
| 233 | 215 | ||
| 216 | (defgroup archive-zip nil | ||
| 217 | "ZIP-specific options to archive." | ||
| 218 | :group 'archive) | ||
| 219 | |||
| 234 | (defcustom archive-zip-extract | 220 | (defcustom archive-zip-extract |
| 235 | (cond ((executable-find "unzip") '("unzip" "-qq" "-c")) | 221 | (cond ((executable-find "unzip") '("unzip" "-qq" "-c")) |
| 236 | (archive-7z-program `(,archive-7z-program "x" "-so")) | 222 | (archive-7z-program `(,archive-7z-program "x" "-so")) |
| @@ -242,8 +228,7 @@ be added." | |||
| 242 | :type '(list (string :tag "Program") | 228 | :type '(list (string :tag "Program") |
| 243 | (repeat :tag "Options" | 229 | (repeat :tag "Options" |
| 244 | :inline t | 230 | :inline t |
| 245 | (string :format "%v"))) | 231 | (string :format "%v")))) |
| 246 | :group 'archive-zip) | ||
| 247 | 232 | ||
| 248 | ;; For several reasons the latter behavior is not desirable in general. | 233 | ;; For several reasons the latter behavior is not desirable in general. |
| 249 | ;; (1) It uses more disk space. (2) Error checking is worse or non- | 234 | ;; (1) It uses more disk space. (2) Error checking is worse or non- |
| @@ -260,8 +245,7 @@ Archive and member names will be added." | |||
| 260 | :type '(list (string :tag "Program") | 245 | :type '(list (string :tag "Program") |
| 261 | (repeat :tag "Options" | 246 | (repeat :tag "Options" |
| 262 | :inline t | 247 | :inline t |
| 263 | (string :format "%v"))) | 248 | (string :format "%v")))) |
| 264 | :group 'archive-zip) | ||
| 265 | 249 | ||
| 266 | (defcustom archive-zip-update | 250 | (defcustom archive-zip-update |
| 267 | (cond ((executable-find "zip") '("zip" "-q")) | 251 | (cond ((executable-find "zip") '("zip" "-q")) |
| @@ -274,8 +258,7 @@ file. Archive and member name will be added." | |||
| 274 | :type '(list (string :tag "Program") | 258 | :type '(list (string :tag "Program") |
| 275 | (repeat :tag "Options" | 259 | (repeat :tag "Options" |
| 276 | :inline t | 260 | :inline t |
| 277 | (string :format "%v"))) | 261 | (string :format "%v")))) |
| 278 | :group 'archive-zip) | ||
| 279 | 262 | ||
| 280 | (defcustom archive-zip-update-case | 263 | (defcustom archive-zip-update-case |
| 281 | (cond ((executable-find "zip") '("zip" "-q" "-k")) | 264 | (cond ((executable-find "zip") '("zip" "-q" "-k")) |
| @@ -288,8 +271,7 @@ Archive and member name will be added." | |||
| 288 | :type '(list (string :tag "Program") | 271 | :type '(list (string :tag "Program") |
| 289 | (repeat :tag "Options" | 272 | (repeat :tag "Options" |
| 290 | :inline t | 273 | :inline t |
| 291 | (string :format "%v"))) | 274 | (string :format "%v")))) |
| 292 | :group 'archive-zip) | ||
| 293 | 275 | ||
| 294 | (declare-function msdos-long-file-names "msdos.c") | 276 | (declare-function msdos-long-file-names "msdos.c") |
| 295 | (defcustom archive-zip-case-fiddle (and (eq system-type 'ms-dos) | 277 | (defcustom archive-zip-case-fiddle (and (eq system-type 'ms-dos) |
| @@ -300,11 +282,14 @@ that uses caseless file names. | |||
| 300 | In addition, this flag forces members added/updated in the zip archive | 282 | In addition, this flag forces members added/updated in the zip archive |
| 301 | to be truncated to DOS 8+3 file-name restrictions." | 283 | to be truncated to DOS 8+3 file-name restrictions." |
| 302 | :type 'boolean | 284 | :type 'boolean |
| 303 | :version "27.1" | 285 | :version "27.1") |
| 304 | :group 'archive-zip) | ||
| 305 | ;; ------------------------------ | 286 | ;; ------------------------------ |
| 306 | ;; Zoo archive configuration | 287 | ;; Zoo archive configuration |
| 307 | 288 | ||
| 289 | (defgroup archive-zoo nil | ||
| 290 | "ZOO-specific options to archive." | ||
| 291 | :group 'archive) | ||
| 292 | |||
| 308 | (defcustom archive-zoo-extract | 293 | (defcustom archive-zoo-extract |
| 309 | '("zoo" "xpq") | 294 | '("zoo" "xpq") |
| 310 | "Program and its options to run in order to extract a zoo file member. | 295 | "Program and its options to run in order to extract a zoo file member. |
| @@ -313,8 +298,7 @@ be added." | |||
| 313 | :type '(list (string :tag "Program") | 298 | :type '(list (string :tag "Program") |
| 314 | (repeat :tag "Options" | 299 | (repeat :tag "Options" |
| 315 | :inline t | 300 | :inline t |
| 316 | (string :format "%v"))) | 301 | (string :format "%v")))) |
| 317 | :group 'archive-zoo) | ||
| 318 | 302 | ||
| 319 | (defcustom archive-zoo-expunge | 303 | (defcustom archive-zoo-expunge |
| 320 | '("zoo" "DqPP") | 304 | '("zoo" "DqPP") |
| @@ -323,8 +307,7 @@ Archive and member names will be added." | |||
| 323 | :type '(list (string :tag "Program") | 307 | :type '(list (string :tag "Program") |
| 324 | (repeat :tag "Options" | 308 | (repeat :tag "Options" |
| 325 | :inline t | 309 | :inline t |
| 326 | (string :format "%v"))) | 310 | (string :format "%v")))) |
| 327 | :group 'archive-zoo) | ||
| 328 | 311 | ||
| 329 | (defcustom archive-zoo-write-file-member | 312 | (defcustom archive-zoo-write-file-member |
| 330 | '("zoo" "a") | 313 | '("zoo" "a") |
| @@ -333,11 +316,14 @@ Archive and member name will be added." | |||
| 333 | :type '(list (string :tag "Program") | 316 | :type '(list (string :tag "Program") |
| 334 | (repeat :tag "Options" | 317 | (repeat :tag "Options" |
| 335 | :inline t | 318 | :inline t |
| 336 | (string :format "%v"))) | 319 | (string :format "%v")))) |
| 337 | :group 'archive-zoo) | ||
| 338 | ;; ------------------------------ | 320 | ;; ------------------------------ |
| 339 | ;; 7z archive configuration | 321 | ;; 7z archive configuration |
| 340 | 322 | ||
| 323 | (defgroup archive-7z nil | ||
| 324 | "7Z-specific options to archive." | ||
| 325 | :group 'archive) | ||
| 326 | |||
| 341 | (defcustom archive-7z-extract | 327 | (defcustom archive-7z-extract |
| 342 | `(,(or archive-7z-program "7z") "x" "-so") | 328 | `(,(or archive-7z-program "7z") "x" "-so") |
| 343 | "Program and its options to run in order to extract a 7z file member. | 329 | "Program and its options to run in order to extract a 7z file member. |
| @@ -347,8 +333,7 @@ be added." | |||
| 347 | :type '(list (string :tag "Program") | 333 | :type '(list (string :tag "Program") |
| 348 | (repeat :tag "Options" | 334 | (repeat :tag "Options" |
| 349 | :inline t | 335 | :inline t |
| 350 | (string :format "%v"))) | 336 | (string :format "%v")))) |
| 351 | :group 'archive-7z) | ||
| 352 | 337 | ||
| 353 | (defcustom archive-7z-expunge | 338 | (defcustom archive-7z-expunge |
| 354 | `(,(or archive-7z-program "7z") "d") | 339 | `(,(or archive-7z-program "7z") "d") |
| @@ -358,8 +343,7 @@ Archive and member names will be added." | |||
| 358 | :type '(list (string :tag "Program") | 343 | :type '(list (string :tag "Program") |
| 359 | (repeat :tag "Options" | 344 | (repeat :tag "Options" |
| 360 | :inline t | 345 | :inline t |
| 361 | (string :format "%v"))) | 346 | (string :format "%v")))) |
| 362 | :group 'archive-7z) | ||
| 363 | 347 | ||
| 364 | (defcustom archive-7z-update | 348 | (defcustom archive-7z-update |
| 365 | `(,(or archive-7z-program "7z") "u") | 349 | `(,(or archive-7z-program "7z") "u") |
| @@ -370,8 +354,7 @@ file. Archive and member name will be added." | |||
| 370 | :type '(list (string :tag "Program") | 354 | :type '(list (string :tag "Program") |
| 371 | (repeat :tag "Options" | 355 | (repeat :tag "Options" |
| 372 | :inline t | 356 | :inline t |
| 373 | (string :format "%v"))) | 357 | (string :format "%v")))) |
| 374 | :group 'archive-7z) | ||
| 375 | 358 | ||
| 376 | ;; ------------------------------------------------------------------------- | 359 | ;; ------------------------------------------------------------------------- |
| 377 | ;;; Section: Variables | 360 | ;;; Section: Variables |