diff options
| author | Dan Nicolaescu | 2009-01-31 17:26:53 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2009-01-31 17:26:53 +0000 |
| commit | 5d3b5eccbd6ceff13627334726961087d7fbf164 (patch) | |
| tree | 6f62767f1ac2eb7fef5e1c0e986b2bfbfb9177d0 | |
| parent | 5311245342075ee34be4a8ecb64715889b0d4c4b (diff) | |
| download | emacs-5d3b5eccbd6ceff13627334726961087d7fbf164.tar.gz emacs-5d3b5eccbd6ceff13627334726961087d7fbf164.zip | |
(vc-dir-mouse-map):
(vc-default-dir-printer):
(vc-dir-find-file-other-window): Undo previous change, it breaks
the behavior of mouse-2.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-dir.el | 15 |
2 files changed, 8 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 20721dab090..ce946defe5a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -9,6 +9,11 @@ | |||
| 9 | 9 | ||
| 10 | 2009-01-31 Dan Nicolaescu <dann@ics.uci.edu> | 10 | 2009-01-31 Dan Nicolaescu <dann@ics.uci.edu> |
| 11 | 11 | ||
| 12 | * vc-dir.el (vc-dir-mouse-map): | ||
| 13 | (vc-default-dir-printer): | ||
| 14 | (vc-dir-find-file-other-window): Undo previous change, it breaks | ||
| 15 | the behavior of mouse-2. | ||
| 16 | |||
| 12 | * vc-svn.el (vc-svn-dir-status): Disable the vc-stay-local-p | 17 | * vc-svn.el (vc-svn-dir-status): Disable the vc-stay-local-p |
| 13 | logic, it makes the makes the normal case too slow. | 18 | logic, it makes the makes the normal case too slow. |
| 14 | 19 | ||
diff --git a/lisp/vc-dir.el b/lisp/vc-dir.el index 6818b3a99d8..249ceec75f9 100644 --- a/lisp/vc-dir.el +++ b/lisp/vc-dir.el | |||
| @@ -689,10 +689,9 @@ that share the same state." | |||
| 689 | (interactive) | 689 | (interactive) |
| 690 | (find-file (vc-dir-current-file))) | 690 | (find-file (vc-dir-current-file))) |
| 691 | 691 | ||
| 692 | (defun vc-dir-find-file-other-window (&optional event) | 692 | (defun vc-dir-find-file-other-window () |
| 693 | "Find the file on the current line, in another window." | 693 | "Find the file on the current line, in another window." |
| 694 | (interactive (list last-input-event)) | 694 | (interactive) |
| 695 | (if event (posn-set-point (event-end event))) | ||
| 696 | (find-file-other-window (vc-dir-current-file))) | 695 | (find-file-other-window (vc-dir-current-file))) |
| 697 | 696 | ||
| 698 | (defun vc-dir-isearch () | 697 | (defun vc-dir-isearch () |
| @@ -1144,13 +1143,6 @@ Interactively, a prefix argument means to ask for the backend." | |||
| 1144 | (propertize "Please add backend specific headers here. It's easy!" | 1143 | (propertize "Please add backend specific headers here. It's easy!" |
| 1145 | 'face 'font-lock-warning-face))) | 1144 | 'face 'font-lock-warning-face))) |
| 1146 | 1145 | ||
| 1147 | ;; Keep existing map. | ||
| 1148 | (defvar vc-dir-mouse-map | ||
| 1149 | (let ((map vc-dir-mode-map)) | ||
| 1150 | (define-key map [mouse-2] 'vc-dir-find-file-other-window) | ||
| 1151 | map) | ||
| 1152 | "Local keymap for visiting a file.") | ||
| 1153 | |||
| 1154 | (defun vc-default-dir-printer (backend fileentry) | 1146 | (defun vc-default-dir-printer (backend fileentry) |
| 1155 | "Pretty print FILEENTRY." | 1147 | "Pretty print FILEENTRY." |
| 1156 | ;; If you change the layout here, change vc-dir-move-to-goal-column. | 1148 | ;; If you change the layout here, change vc-dir-move-to-goal-column. |
| @@ -1177,8 +1169,7 @@ Interactively, a prefix argument means to ask for the backend." | |||
| 1177 | (if isdir | 1169 | (if isdir |
| 1178 | "Directory\nVC operations can be applied to it\nmouse-3: Pop-up menu" | 1170 | "Directory\nVC operations can be applied to it\nmouse-3: Pop-up menu" |
| 1179 | "File\nmouse-3: Pop-up menu") | 1171 | "File\nmouse-3: Pop-up menu") |
| 1180 | 'mouse-face 'highlight | 1172 | 'mouse-face 'highlight)))) |
| 1181 | 'local-map vc-dir-mouse-map)))) | ||
| 1182 | 1173 | ||
| 1183 | (defun vc-default-extra-status-menu (backend) | 1174 | (defun vc-default-extra-status-menu (backend) |
| 1184 | nil) | 1175 | nil) |