Function: vc-dir-delete-file
vc-dir-delete-file is an interactive and byte-compiled function
defined in vc-dir.el.gz.
Signature
(vc-dir-delete-file)
Documentation
Delete the marked files, or the current file if no marks.
The files will also be marked as deleted in the version control system.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-dir.el.gz
(defun vc-dir-delete-file ()
"Delete the marked files, or the current file if no marks.
The files will also be marked as deleted in the version control
system."
(interactive)
(if-let* ((fileset-only-files
(nth 2 (vc-dir-deduce-fileset 'state-model-only-files))))
(vc-delete-file fileset-only-files)
(user-error "Nothing to delete here")))