aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2008-08-01 18:05:37 +0000
committerSam Steingold2008-08-01 18:05:37 +0000
commitdb18c5fd6fca1633508dc77d687789f38d905dd1 (patch)
tree986229dd0ae17f73ff4985dfcfcd983fc5a520b3
parent04f33e1137a7e254293ed624502e5f0b7c13df42 (diff)
downloademacs-db18c5fd6fca1633508dc77d687789f38d905dd1.tar.gz
emacs-db18c5fd6fca1633508dc77d687789f38d905dd1.zip
restore 2008-07-30T14:50:08Z!dann@ics.uci.edu
-rw-r--r--lisp/vc-dir.el24
1 files changed, 19 insertions, 5 deletions
diff --git a/lisp/vc-dir.el b/lisp/vc-dir.el
index 79f5de88aff..f7f9f51054c 100644
--- a/lisp/vc-dir.el
+++ b/lisp/vc-dir.el
@@ -206,7 +206,7 @@ See `run-hooks'."
206 '(menu-item "Register" vc-register 206 '(menu-item "Register" vc-register
207 :help "Register file set into the version control system")) 207 :help "Register file set into the version control system"))
208 map) 208 map)
209 "Menu for dispatcher status") 209 "Menu for VC dir")
210 210
211;; VC backends can use this to add mode-specific menu items to 211;; VC backends can use this to add mode-specific menu items to
212;; vc-dir-menu-map. 212;; vc-dir-menu-map.
@@ -231,8 +231,9 @@ See `run-hooks'."
231 (define-key map "+" 'vc-update) ;; C-x v + 231 (define-key map "+" 'vc-update) ;; C-x v +
232 (define-key map "l" 'vc-print-log) ;; C-x v l 232 (define-key map "l" 'vc-print-log) ;; C-x v l
233 ;; More confusing than helpful, probably 233 ;; More confusing than helpful, probably
234 ;;(define-key map "R" 'vc-revert) ;; u is taken by dispatcher unmark. 234 ;;(define-key map "R" 'vc-revert) ;; u is taken by vc-dir-unmark.
235 ;;(define-key map "A" 'vc-annotate) ;; g is taken by dispatcher refresh 235 ;;(define-key map "A" 'vc-annotate) ;; g is taken by revert-buffer
236 ;; bound by `special-mode'.
236 ;; Marking. 237 ;; Marking.
237 (define-key map "m" 'vc-dir-mark) 238 (define-key map "m" 'vc-dir-mark)
238 (define-key map "M" 'vc-dir-mark-all-files) 239 (define-key map "M" 'vc-dir-mark-all-files)
@@ -285,7 +286,7 @@ If `body' uses `event', it should be a variable,
285 ,@body)))) 286 ,@body))))
286 287
287(defun vc-dir-menu (e) 288(defun vc-dir-menu (e)
288 "Popup the dispatcher status menu." 289 "Popup the VC dir menu."
289 (interactive "e") 290 (interactive "e")
290 (vc-at-event e (popup-menu vc-dir-menu-map e))) 291 (vc-at-event e (popup-menu vc-dir-menu-map e)))
291 292
@@ -871,7 +872,7 @@ If it is a file, return the corresponding cons for the file itself."
871(defvar use-vc-backend) ;; dynamically bound 872(defvar use-vc-backend) ;; dynamically bound
872 873
873(define-derived-mode vc-dir-mode special-mode "VC dir" 874(define-derived-mode vc-dir-mode special-mode "VC dir"
874 "Major mode for dispatcher directory buffers. 875 "Major mode for VC directory buffers.
875Marking/Unmarking key bindings and actions: 876Marking/Unmarking key bindings and actions:
876m - marks a file/directory or if the region is active, mark all the files 877m - marks a file/directory or if the region is active, mark all the files
877 in region. 878 in region.
@@ -889,6 +890,19 @@ U - if the cursor is on a file: unmark all the files with the same state
889 - if the cursor is on a directory: unmark all child files 890 - if the cursor is on a directory: unmark all child files
890 - with a prefix argument: unmark all files 891 - with a prefix argument: unmark all files
891 892
893VC commands
894VC commands in the `C-x v' can be used, they act on the marked
895entries, or on the current entry if nothing is marked.
896
897Search & Replace
898S - searches the marked files
899Q - does a query replace on the marked files
900M-s a C-s - does an isearch on the marked files
901M-s a C-M-s - does an isearch on the marked files
902If nothing is marked, these commands act on the current entry.
903When a directory is current or marked, the Search & Replace
904commands act on the files in those directories displayed in the
905*vc-dir* buffer.
892 906
893\\{vc-dir-mode-map}" 907\\{vc-dir-mode-map}"
894 (set (make-local-variable 'vc-dir-backend) use-vc-backend) 908 (set (make-local-variable 'vc-dir-backend) use-vc-backend)