diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2009-02-11 06:36:32 +0000 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2009-02-11 06:36:32 +0000 |
commit | c7f9e440607c982984fb387bd958413a924b613e (patch) | |
tree | b2e8bbaa8fd818f85dbee5b0369970702e59aa05 /lisp/vc-dir.el | |
parent | c87362126bb46c3c188c445b1b08b8c508c817c1 (diff) |
* vc-dir.el (vc-dir-filename-mouse-map): Rename from vc-dir-mouse-map.
(vc-default-dir-printer): Add a comment about updating this function.
* vc-git.el (vc-git-dir-printer): Use vc-dir-filename-mouse-map
for the file name.
Diffstat (limited to 'lisp/vc-dir.el')
-rw-r--r-- | lisp/vc-dir.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/vc-dir.el b/lisp/vc-dir.el index 81be5f10cd..93e081c0f9 100644 --- a/lisp/vc-dir.el +++ b/lisp/vc-dir.el @@ -1146,7 +1146,7 @@ Interactively, a prefix argument means to ask for the backend." (propertize "Please add backend specific headers here. It's easy!" 'face 'font-lock-warning-face))) -(defvar vc-dir-mouse-map +(defvar vc-dir-filename-mouse-map (let ((map (make-sparse-keymap))) (define-key map [mouse-2] 'vc-dir-find-file-other-window) map) @@ -1155,6 +1155,9 @@ Interactively, a prefix argument means to ask for the backend." (defun vc-default-dir-printer (backend fileentry) "Pretty print FILEENTRY." ;; If you change the layout here, change vc-dir-move-to-goal-column. + ;; VC backends can implement backend specific versions of this + ;; function. Changes here might need to be reflected in the + ;; vc-BACKEND-dir-printer functions. (let* ((isdir (vc-dir-fileinfo->directory fileentry)) (state (if isdir "" (vc-dir-fileinfo->state fileentry))) (filename (vc-dir-fileinfo->name fileentry))) @@ -1179,7 +1182,7 @@ Interactively, a prefix argument means to ask for the backend." "Directory\nVC operations can be applied to it\nmouse-3: Pop-up menu" "File\nmouse-3: Pop-up menu") 'mouse-face 'highlight - 'keymap vc-dir-mouse-map)))) + 'keymap vc-dir-filename-mouse-map)))) (defun vc-default-extra-status-menu (backend) nil) |