aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2008-07-30 14:59:08 +0000
committerSam Steingold2008-07-30 14:59:08 +0000
commit9b9b76556abef6cec7cd0a50b35828b42ba5ac07 (patch)
treedc8697b37f47de4e4227dd5ae35953f3d4f346f5
parenta35aeb5f278929a32e3a2027d62a123d33799b40 (diff)
downloademacs-9b9b76556abef6cec7cd0a50b35828b42ba5ac07.tar.gz
emacs-9b9b76556abef6cec7cd0a50b35828b42ba5ac07.zip
(vc-dir): Call file-truename on the dir argument.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc-dir.el35
2 files changed, 17 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 470039e83c4..3d109ef59fc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-07-30 Sam Steingold <sds@gnu.org>
2
3 * vc-dir.el (vc-dir): Call file-truename on the dir argument.
4
12008-07-30 Dan Nicolaescu <dann@ics.uci.edu> 52008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2 6
3 * vc-dir.el (vc-dir-menu-map, vc-at-event): Fix docstring. 7 * vc-dir.el (vc-dir-menu-map, vc-at-event): Fix docstring.
diff --git a/lisp/vc-dir.el b/lisp/vc-dir.el
index c3fe0b28539..79f5de88aff 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 VC dir") 209 "Menu for dispatcher status")
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,9 +231,8 @@ 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 vc-dir-unmark. 234 ;;(define-key map "R" 'vc-revert) ;; u is taken by dispatcher unmark.
235 ;;(define-key map "A" 'vc-annotate) ;; g is taken by revert-buffer 235 ;;(define-key map "A" 'vc-annotate) ;; g is taken by dispatcher refresh
236 ;; bound by `special-mode'.
237 ;; Marking. 236 ;; Marking.
238 (define-key map "m" 'vc-dir-mark) 237 (define-key map "m" 'vc-dir-mark)
239 (define-key map "M" 'vc-dir-mark-all-files) 238 (define-key map "M" 'vc-dir-mark-all-files)
@@ -286,7 +285,7 @@ If `body' uses `event', it should be a variable,
286 ,@body)))) 285 ,@body))))
287 286
288(defun vc-dir-menu (e) 287(defun vc-dir-menu (e)
289 "Popup the VC dir menu." 288 "Popup the dispatcher status menu."
290 (interactive "e") 289 (interactive "e")
291 (vc-at-event e (popup-menu vc-dir-menu-map e))) 290 (vc-at-event e (popup-menu vc-dir-menu-map e)))
292 291
@@ -872,7 +871,7 @@ If it is a file, return the corresponding cons for the file itself."
872(defvar use-vc-backend) ;; dynamically bound 871(defvar use-vc-backend) ;; dynamically bound
873 872
874(define-derived-mode vc-dir-mode special-mode "VC dir" 873(define-derived-mode vc-dir-mode special-mode "VC dir"
875 "Major mode for VC directory buffers. 874 "Major mode for dispatcher directory buffers.
876Marking/Unmarking key bindings and actions: 875Marking/Unmarking key bindings and actions:
877m - marks a file/directory or if the region is active, mark all the files 876m - marks a file/directory or if the region is active, mark all the files
878 in region. 877 in region.
@@ -890,19 +889,6 @@ U - if the cursor is on a file: unmark all the files with the same state
890 - if the cursor is on a directory: unmark all child files 889 - if the cursor is on a directory: unmark all child files
891 - with a prefix argument: unmark all files 890 - with a prefix argument: unmark all files
892 891
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.
906 892
907\\{vc-dir-mode-map}" 893\\{vc-dir-mode-map}"
908 (set (make-local-variable 'vc-dir-backend) use-vc-backend) 894 (set (make-local-variable 'vc-dir-backend) use-vc-backend)
@@ -1107,9 +1093,14 @@ Optional second argument BACKEND specifies the VC backend to use.
1107Interactively, a prefix argument means to ask for the backend." 1093Interactively, a prefix argument means to ask for the backend."
1108 (interactive 1094 (interactive
1109 (list 1095 (list
1110 (read-file-name "VC status for directory: " 1096 ;; When you hit C-x v d in a visited VC file,
1111 default-directory default-directory t 1097 ;; the *vc-dir* buffer visits the directory under its truename;
1112 nil #'file-directory-p) 1098 ;; therefore it makes sense to always do that.
1099 ;; Otherwise if you do C-x v d -> C-x C-f -> C-c v d
1100 ;; you may get a new *vc-dir* buffer, different from the original
1101 (file-truename (read-file-name "VC status for directory: "
1102 default-directory default-directory t
1103 nil #'file-directory-p))
1113 (if current-prefix-arg 1104 (if current-prefix-arg
1114 (intern 1105 (intern
1115 (completing-read 1106 (completing-read