diff options
| author | Eli Zaretskii | 2010-06-25 14:42:47 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-06-25 14:42:47 +0300 |
| commit | aca54191748018f741c8fdd274df142f20a8d2a0 (patch) | |
| tree | b3af1ae15ef46e496ca33434cc1ad4596bff88c8 | |
| parent | c7dd9743077f99ceb91be4c21900d4dfbd5161d4 (diff) | |
| download | emacs-aca54191748018f741c8fdd274df142f20a8d2a0.tar.gz emacs-aca54191748018f741c8fdd274df142f20a8d2a0.zip | |
Fix bugs #6144 and #6467.
arc-mode.el (archive-zip-extract): Don't quote the file name on
MS-Windows and MS-DOS. (Bug#6467, Bug#6144)
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/arc-mode.el | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4c816a779e9..ca9e18ad585 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-06-25 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * arc-mode.el (archive-zip-extract): Don't quote the file name on | ||
| 4 | MS-Windows and MS-DOS. (Bug#6467, Bug#6144) | ||
| 5 | |||
| 1 | 2010-06-24 Štěpán Němec <stepnem@gmail.com> (tiny change) | 6 | 2010-06-24 Štěpán Němec <stepnem@gmail.com> (tiny change) |
| 2 | 7 | ||
| 3 | * comint.el (make-comint, make-comint-in-buffer): Mention return | 8 | * comint.el (make-comint, make-comint-in-buffer): Mention return |
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 5942e920a65..1cb3ade9a2d 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el | |||
| @@ -1791,9 +1791,13 @@ This doesn't recover lost files, it just undoes changes in the buffer itself." | |||
| 1791 | (archive-*-extract archive name archive-zip-extract) | 1791 | (archive-*-extract archive name archive-zip-extract) |
| 1792 | (archive-extract-by-stdout | 1792 | (archive-extract-by-stdout |
| 1793 | archive | 1793 | archive |
| 1794 | ;; unzip expands wildcards in NAME, so we need to quote it. | 1794 | ;; unzip expands wildcards in NAME, so we need to quote it. But |
| 1795 | ;; not on DOS/Windows, since that fails extraction on those | ||
| 1796 | ;; systems, and file names with wildcards in zip archives don't | ||
| 1797 | ;; work there anyway. | ||
| 1795 | ;; FIXME: Does pkunzip need similar treatment? | 1798 | ;; FIXME: Does pkunzip need similar treatment? |
| 1796 | (if (equal (car archive-zip-extract) "unzip") | 1799 | (if (and (not (memq system-type '(windows-nt ms-dos))) |
| 1800 | (equal (car archive-zip-extract) "unzip")) | ||
| 1797 | (shell-quote-argument name) | 1801 | (shell-quote-argument name) |
| 1798 | name) | 1802 | name) |
| 1799 | archive-zip-extract))) | 1803 | archive-zip-extract))) |