mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 18:37:33 +00:00
(vc-at-event): Handle (tool-bar) events. Fix bug#1585.
This commit is contained in:
parent
97b3a00b20
commit
5da5a66f02
2 changed files with 10 additions and 5 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2008-12-18 Sam Steingold <sds@gnu.org>
|
||||
|
||||
* vc-dir.el (vc-at-event): Handle (tool-bar) events. Fix bug#1585.
|
||||
|
||||
2008-12-18 Juri Linkov <juri@jurta.org>
|
||||
|
||||
* isearch.el (minibuffer-local-isearch-map): Unbind "C-w" from
|
||||
|
|
|
|||
|
|
@ -280,11 +280,12 @@ See `run-hooks'."
|
|||
If `body' uses `event', it should be a variable,
|
||||
otherwise it will be evaluated twice."
|
||||
(let ((posn (make-symbol "vc-at-event-posn")))
|
||||
`(let ((,posn (event-start ,event)))
|
||||
(save-excursion
|
||||
(set-buffer (window-buffer (posn-window ,posn)))
|
||||
(goto-char (posn-point ,posn))
|
||||
,@body))))
|
||||
`(save-excursion
|
||||
(unless (equal ,event '(tool-bar))
|
||||
(let ((,posn (event-start ,event)))
|
||||
(set-buffer (window-buffer (posn-window ,posn)))
|
||||
(goto-char (posn-point ,posn))))
|
||||
,@body)))
|
||||
|
||||
(defun vc-dir-menu (e)
|
||||
"Popup the VC dir menu."
|
||||
|
|
|
|||
Loading…
Reference in a new issue