end-point (posn-point end))
(cond
-
- ;; Ignore switch-frame events.
- ((eq (car-safe event) 'switch-frame))
-
;; Are we moving within the original window?
((and (eq (posn-window end) start-window)
(integer-or-marker-p end-point))
(setq end (event-end event)
end-point (posn-point end))
(cond
-
- ;; Ignore switch-frame events.
- ((eq (car-safe event) 'switch-frame))
-
;; Are we moving within the original window?
((and (eq (posn-window end) start-window)
(integer-or-marker-p end-point))