Mercurial > emacs
changeset 18675:a22ef14d16f8
(mouse-show-mark): Handle switch-frame events in the loop.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 08 Jul 1997 09:47:23 +0000 |
parents | c5a781c89bd2 |
children | 3980293d3bbd |
files | lisp/mouse.el |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mouse.el Tue Jul 08 04:28:20 1997 +0000 +++ b/lisp/mouse.el Tue Jul 08 09:47:23 1997 +0000 @@ -759,12 +759,14 @@ (throw 'mouse-show-mark t))))) (move-overlay mouse-drag-overlay (point) (mark t)) (catch 'mouse-show-mark - ;; In this loop, read and execute scroll bar events. - ;; Otherwise, if we + ;; In this loop, execute scroll bar and switch-frame events. + ;; Also ignore down-events that are undefined. (while (progn (setq event (read-event)) (setq events (append events (list event))) (setq key (apply 'vector events)) (or (and (consp event) + (eq (car event) 'switch-frame)) + (and (consp event) (eq (posn-point (event-end event)) 'vertical-scroll-bar)) (and (memq 'down (event-modifiers event)) @@ -772,8 +774,9 @@ (not (mouse-undouble-last-event events)) (not (member key mouse-region-delete-keys))))) (and (consp event) - (eq (posn-point (event-end event)) - 'vertical-scroll-bar) + (or (eq (car event) 'switch-frame) + (eq (posn-point (event-end event)) + 'vertical-scroll-bar)) (let ((keys (vector 'vertical-scroll-bar event))) (and (key-binding keys) (progn