EMACS uses an external compression / compression program. All he needs to do is know the right program to use.
Some extended discussion:
As I said, I donβt have a Windows window, but the LISP code is in arc-mode.el along line 230:
(defcustom archive-zip-extract (if (and (not (executable-find "unzip")) (executable-find "pkunzip")) '("pkunzip" "-e" "-o-") '("unzip" "-qq" "-c")) "*Program and its options to run in order to extract a zip file member. Extraction should happen to standard output. Archive and member name will be added." :type '(list (string :tag "Program") (repeat :tag "Options" :inline t (string :format "%v"))) :group 'archive-zip)
Watch the executable-find function. It searches your EMACS exec-path , which includes some EMACS executables that are not in your regular PATH variable. In my case, this is:
("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/Applications/Emacs.app/Contents/MacOS/libexec" "/Applications/Emacs.app/Contents/MacOS/bin" "~/bin" "/usr/local/bin" "/usr/X11R6/bin")
which includes two directories inside the EMACS package. Your Windows installation will include equivalent directories somewhere in the guts of the EMACS installation. This is where to look for executables if they are not in your normal path.
You can download pkunzip from this site , install it and add the installation path using (add-to-list 'exec-path "c:/path/to/pkunzip")
Charlie martin
source share