aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/arc-mode.el14
2 files changed, 16 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5f52b138c2d..b3de5b8baed 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12010-02-01 Juri Linkov <juri@jurta.org>
2
3 * arc-mode.el (archive-zip-extract): Use `member-ignore-case' to
4 compare with "pkunzip" and "pkzip" instead of only "pkzip".
5 In the `archive-extract-by-stdout' branch use `shell-quote-argument'
6 only when (car archive-zip-extract) is "unzip". (Bug#5475)
7
12010-02-01 Stefan Monnier <monnier@iro.umontreal.ca> 82010-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
2 9
3 * doc-view.el (doc-view-new-window-function): Be a bit more defensive. 10 * doc-view.el (doc-view-new-window-function): Be a bit more defensive.
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el
index 4a0576fdded..ee32d893654 100644
--- a/lisp/arc-mode.el
+++ b/lisp/arc-mode.el
@@ -1782,12 +1782,16 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1782 (apply 'vector (nreverse files)))) 1782 (apply 'vector (nreverse files))))
1783 1783
1784(defun archive-zip-extract (archive name) 1784(defun archive-zip-extract (archive name)
1785 (if (equal (car archive-zip-extract) "pkzip") 1785 (if (member-ignore-case (car archive-zip-extract) '("pkunzip" "pkzip"))
1786 (archive-*-extract archive name archive-zip-extract) 1786 (archive-*-extract archive name archive-zip-extract)
1787 ;; unzip expands wildcards in NAME, so we need to quote it. 1787 (archive-extract-by-stdout
1788 ;; FIXME: Does pkzip need similar treatment? 1788 archive
1789 (archive-extract-by-stdout archive (shell-quote-argument name) 1789 ;; unzip expands wildcards in NAME, so we need to quote it.
1790 archive-zip-extract))) 1790 ;; FIXME: Does pkunzip need similar treatment?
1791 (if (equal (car archive-zip-extract) "unzip")
1792 (shell-quote-argument name)
1793 name)
1794 archive-zip-extract)))
1791 1795
1792(defun archive-zip-write-file-member (archive descr) 1796(defun archive-zip-write-file-member (archive descr)
1793 (archive-*-write-file-member 1797 (archive-*-write-file-member