diff options
| author | Eli Zaretskii | 2019-11-19 17:48:55 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-11-19 17:48:55 +0200 |
| commit | 6f30642973975a317a9c94ceba737a4bafc89919 (patch) | |
| tree | 3c879f677c216974b21416644e19120185055d7f | |
| parent | bb1e7433cb6c9d96ff048a82be1ea6bdc06dba96 (diff) | |
| download | emacs-6f30642973975a317a9c94ceba737a4bafc89919.tar.gz emacs-6f30642973975a317a9c94ceba737a4bafc89919.zip | |
Fix updating members of zip archives
* lisp/arc-mode.el (archive-zip-case-fiddle): Change the
default to nil except on MS-DOS. Update the doc string to
make clear that a non-nil value also affects updating the
archive. (Bug#38260)
| -rw-r--r-- | lisp/arc-mode.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 7f435f17a17..0cdc8a147d2 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el | |||
| @@ -291,11 +291,16 @@ Archive and member name will be added." | |||
| 291 | (string :format "%v"))) | 291 | (string :format "%v"))) |
| 292 | :group 'archive-zip) | 292 | :group 'archive-zip) |
| 293 | 293 | ||
| 294 | (defcustom archive-zip-case-fiddle t | 294 | (declare-function msdos-long-file-names "msdos.c") |
| 295 | "If non-nil then zip file members may be down-cased. | 295 | (defcustom archive-zip-case-fiddle (and (eq system-type 'ms-dos) |
| 296 | (not (msdos-long-file-names))) | ||
| 297 | "If non-nil, then all-caps names of zip file members will be down-cased. | ||
| 296 | This case fiddling will only happen for members created by a system | 298 | This case fiddling will only happen for members created by a system |
| 297 | that uses caseless file names." | 299 | that uses caseless file names. |
| 300 | In addition, this flag forces members added/updated in the zip archive | ||
| 301 | to be truncated to DOS 8+3 file-name restrictions." | ||
| 298 | :type 'boolean | 302 | :type 'boolean |
| 303 | :version "27.1" | ||
| 299 | :group 'archive-zip) | 304 | :group 'archive-zip) |
| 300 | ;; ------------------------------ | 305 | ;; ------------------------------ |
| 301 | ;; Zoo archive configuration | 306 | ;; Zoo archive configuration |