emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master e6fe301: Another longstanding to-do: bind vc-delete


From: Eric S. Raymond
Subject: [Emacs-diffs] master e6fe301: Another longstanding to-do: bind vc-delete-file.
Date: Tue, 02 Dec 2014 10:32:01 +0000

branch: master
commit e6fe301afe4bbc707d2fde44a5250b84418d2b1b
Author: Eric S. Raymond <address@hidden>
Commit: Eric S. Raymond <address@hidden>

    Another longstanding to-do: bind vc-delete-file.
---
 lisp/ChangeLog      |    6 ++++++
 lisp/vc/vc-hooks.el |    1 +
 lisp/vc/vc.el       |    4 +---
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d005cbe..6ffdd0a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
 2014-12-02  Eric S. Raymond  <address@hidden>
 
+       * 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
        is no longer a public method.  It is now local to the one place
        it's used, in the RCS steal-lock method.
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index c4acef9..61918c9 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -893,6 +893,7 @@ current, and kill the buffer that visits the link."
     (define-key map "=" 'vc-diff)
     (define-key map "D" 'vc-root-diff)
     (define-key map "~" 'vc-revision-other-window)
+    (define-key map "[delete]" 'vc-delete-file)
     map))
 (fset 'vc-prefix-map vc-prefix-map)
 (define-key ctl-x-map "v" 'vc-prefix-map)
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index ad3a2c4..1b82bfd 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -602,15 +602,13 @@
 
 ;;; Todo:
 
-;; - Add key-binding for vc-delete-file.
-
 ;;;; New Primitives:
 ;;
 ;; - deal with push operations.
 ;;
 ;;;; 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.
 ;;   vc-update and vc-merge assume the arguments are always files,
 ;;   they don't deal with directories.  Make sure the *vc-dir* buffer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]