aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc-dir.el11
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 87f319c397f..37d02b9ef56 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-12-18 Sam Steingold <sds@gnu.org>
2
3 * vc-dir.el (vc-at-event): Handle (tool-bar) events. Fix bug#1585.
4
12008-12-18 Juri Linkov <juri@jurta.org> 52008-12-18 Juri Linkov <juri@jurta.org>
2 6
3 * isearch.el (minibuffer-local-isearch-map): Unbind "C-w" from 7 * isearch.el (minibuffer-local-isearch-map): Unbind "C-w" from
diff --git a/lisp/vc-dir.el b/lisp/vc-dir.el
index 63f239ead32..aaa5b1b58c1 100644
--- a/lisp/vc-dir.el
+++ b/lisp/vc-dir.el
@@ -280,11 +280,12 @@ See `run-hooks'."
280If `body' uses `event', it should be a variable, 280If `body' uses `event', it should be a variable,
281 otherwise it will be evaluated twice." 281 otherwise it will be evaluated twice."
282 (let ((posn (make-symbol "vc-at-event-posn"))) 282 (let ((posn (make-symbol "vc-at-event-posn")))
283 `(let ((,posn (event-start ,event))) 283 `(save-excursion
284 (save-excursion 284 (unless (equal ,event '(tool-bar))
285 (set-buffer (window-buffer (posn-window ,posn))) 285 (let ((,posn (event-start ,event)))
286 (goto-char (posn-point ,posn)) 286 (set-buffer (window-buffer (posn-window ,posn)))
287 ,@body)))) 287 (goto-char (posn-point ,posn))))
288 ,@body)))
288 289
289(defun vc-dir-menu (e) 290(defun vc-dir-menu (e)
290 "Popup the VC dir menu." 291 "Popup the VC dir menu."