Function: tar-flag-deleted

tar-flag-deleted is an interactive and byte-compiled function defined in tar-mode.el.gz.

Signature

(tar-flag-deleted P &optional UNFLAG)

Documentation

In Tar mode, mark this sub-file to be deleted from the tar file.

With a prefix argument, mark that many files.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/tar-mode.el.gz
(defun tar-flag-deleted (p &optional unflag)
  "In Tar mode, mark this sub-file to be deleted from the tar file.
With a prefix argument, mark that many files."
  (interactive "p")
  (beginning-of-line)
  (dotimes (_ (abs p))
    (if (tar-current-descriptor unflag) ; barf if we're not on an entry-line.
	(progn
	  (delete-char 1)
	  (insert (if unflag " " "D"))))
    (forward-line (if (< p 0) -1 1)))
  (if (eobp) nil (forward-char 36)))