diff options
| author | Sam Steingold | 2008-12-18 03:29:02 +0000 |
|---|---|---|
| committer | Sam Steingold | 2008-12-18 03:29:02 +0000 |
| commit | 5da5a66f02081ebcfda7e77a9ee75df2c21904b6 (patch) | |
| tree | 01aed40f4aacb49ffb4a39a8acdf4fe168fbb0a9 | |
| parent | 97b3a00b2000ec04ee2743fe3fa53a8ae7a9c144 (diff) | |
| download | emacs-5da5a66f02081ebcfda7e77a9ee75df2c21904b6.tar.gz emacs-5da5a66f02081ebcfda7e77a9ee75df2c21904b6.zip | |
(vc-at-event): Handle (tool-bar) events. Fix bug#1585.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/vc-dir.el | 11 |
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 @@ | |||
| 1 | 2008-12-18 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * vc-dir.el (vc-at-event): Handle (tool-bar) events. Fix bug#1585. | ||
| 4 | |||
| 1 | 2008-12-18 Juri Linkov <juri@jurta.org> | 5 | 2008-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'." | |||
| 280 | If `body' uses `event', it should be a variable, | 280 | If `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." |