Function: archive-summarize
archive-summarize is a byte-compiled function defined in
arc-mode.el.gz.
Signature
(archive-summarize &optional SHUT-UP)
Documentation
Parse the contents of the archive file in the current buffer.
Place a dired-like listing on the front; then narrow to it, so that only that listing is visible (and the real data of the buffer is hidden). Optional argument SHUT-UP, if non-nil, means don't print messages when parsing the archive.
Source Code
;; Defined in /usr/src/emacs/lisp/arc-mode.el.gz
(defun archive-summarize (&optional shut-up)
"Parse the contents of the archive file in the current buffer.
Place a dired-like listing on the front;
then narrow to it, so that only that listing
is visible (and the real data of the buffer is hidden).
Optional argument SHUT-UP, if non-nil, means don't print messages
when parsing the archive."
(widen)
(let ((create-lockfiles nil) ; avoid changing dir mtime by lock_file
(inhibit-read-only t))
(setq archive-proper-file-start (copy-marker (point-min) t))
(add-hook 'change-major-mode-hook #'archive-desummarize nil t)
(or shut-up
(message "Parsing archive file..."))
(buffer-disable-undo (current-buffer))
(setq archive-files (funcall (archive-name "summarize")))
(or shut-up
(message "Parsing archive file...done."))
(setq archive-proper-file-start (point-marker))
(narrow-to-region (point-min) (point))
(set-buffer-modified-p nil)
(buffer-enable-undo))
(goto-char archive-file-list-start)
(archive-next-line 0))