Commit e6fe301a authored by Eric S. Raymond's avatar Eric S. Raymond

Another longstanding to-do: bind vc-delete-file.

parent 92411a0d
2014-12-02 Eric S. Raymond <esr@snark.thyrsus.com> 2014-12-02 Eric S. Raymond <esr@snark.thyrsus.com>
* vc-hooks.el: Bind vc-delete-file to Ctrl-x v delete.
* vc.el (vc-expand-dirs): Now takes a second BACKEND argument,
improving behavior on directories using multiple file-oriented
VCSes.
* vc/vc.el and all backends: API simplification; clear-headers * vc/vc.el and all backends: API simplification; clear-headers
is no longer a public method. It is now local to the one place is no longer a public method. It is now local to the one place
it's used, in the RCS steal-lock method. it's used, in the RCS steal-lock method.
......
...@@ -893,6 +893,7 @@ current, and kill the buffer that visits the link." ...@@ -893,6 +893,7 @@ current, and kill the buffer that visits the link."
(define-key map "=" 'vc-diff) (define-key map "=" 'vc-diff)
(define-key map "D" 'vc-root-diff) (define-key map "D" 'vc-root-diff)
(define-key map "~" 'vc-revision-other-window) (define-key map "~" 'vc-revision-other-window)
(define-key map "[delete]" 'vc-delete-file)
map)) map))
(fset 'vc-prefix-map vc-prefix-map) (fset 'vc-prefix-map vc-prefix-map)
(define-key ctl-x-map "v" 'vc-prefix-map) (define-key ctl-x-map "v" 'vc-prefix-map)
......
...@@ -602,15 +602,13 @@ ...@@ -602,15 +602,13 @@
;;; Todo: ;;; Todo:
;; - Add key-binding for vc-delete-file.
;;;; New Primitives: ;;;; New Primitives:
;; ;;
;; - deal with push operations. ;; - deal with push operations.
;; ;;
;;;; Primitives that need changing: ;;;; Primitives that need changing:
;; ;;
;; - vc-update/vc-merge should deal with VC systems that don't ;; - vc-update/vc-merge should deal with VC systems that don't do
;; update/merge on a file basis, but on a whole repository basis. ;; update/merge on a file basis, but on a whole repository basis.
;; vc-update and vc-merge assume the arguments are always files, ;; vc-update and vc-merge assume the arguments are always files,
;; they don't deal with directories. Make sure the *vc-dir* buffer ;; they don't deal with directories. Make sure the *vc-dir* buffer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment