Function: archive-lzh-exe-summarize
archive-lzh-exe-summarize is a byte-compiled function defined in
arc-mode.el.gz.
Signature
(archive-lzh-exe-summarize)
Documentation
Summarize the contents of an LZH self-extracting exe, for archive-mode.
Source Code
;; Defined in /usr/src/emacs/lisp/arc-mode.el.gz
;; -------------------------------------------------------------------------
;;; Section: Lzh Self-Extracting .exe Archives
;;
;; No support for modifying these files. It looks like the lha for unix
;; program (as of version 1.14i) can't create or retain the DOS exe part.
;; If you do an "lha a" on a .exe for instance it renames and writes to a
;; plain .lzh.
(defun archive-lzh-exe-summarize ()
"Summarize the contents of an LZH self-extracting exe, for `archive-mode'."
;; Skip the initial executable code part and apply archive-lzh-summarize
;; to the archive part proper. The "-lh5-" etc regexp here for the start
;; is the same as in archive-find-type.
;;
;; The lha program (version 1.14i) does this in skip_msdos_sfx1_code() by
;; a similar scan. It looks for "..-l..-" plus for level 0 or 1 a test of
;; the header checksum, or level 2 a test of the "attribute" and size.
;;
(re-search-forward "..-l[hz][0-9ds]-" nil)
(archive-lzh-summarize (match-beginning 0)))