Function: archive-flag-deleted
archive-flag-deleted is an interactive and byte-compiled function
defined in arc-mode.el.gz.
Signature
(archive-flag-deleted P &optional TYPE)
Documentation
In archive mode, mark this member to be deleted from the archive.
With a prefix argument, mark that many files.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/arc-mode.el.gz
;; -------------------------------------------------------------------------
;;; Section: Marking and unmarking.
(defun archive-flag-deleted (p &optional type)
"In archive mode, mark this member to be deleted from the archive.
With a prefix argument, mark that many files."
(interactive "p" archive-mode)
(or type (setq type ?D))
(beginning-of-line)
(let ((sign (if (>= p 0) +1 -1))
(modified (buffer-modified-p))
(inhibit-read-only t))
(while (not (zerop p))
(if (archive-get-descr t)
(progn
(delete-char 1)
(insert type)))
(forward-line sign)
(setq p (- p sign)))
(restore-buffer-modified-p modified))
(archive-next-line 0))