Function: tar-mode-revert

tar-mode-revert is a byte-compiled function defined in tar-mode.el.gz.

Signature

(tar-mode-revert &optional NO-AUTO-SAVE NO-CONFIRM)

Source Code

;; Defined in /usr/src/emacs/lisp/tar-mode.el.gz
;; Revert the buffer and recompute the dired-like listing.
(defun tar-mode-revert (&optional no-auto-save no-confirm)
  (unwind-protect
      (let ((revert-buffer-function nil))
        (if (tar-data-swapped-p) (tar-swap-data))
        ;; FIXME: If we ask for confirmation, the user will be temporarily
        ;; looking at the raw data.
        (revert-buffer no-auto-save no-confirm 'preserve-modes)
        ;; Recompute the summary.
        (if (buffer-live-p tar-data-buffer) (kill-buffer tar-data-buffer))
        (tar-mode))
    (unless (tar-data-swapped-p) (tar-swap-data))))