# HG changeset patch # User Richard M. Stallman # Date 843500690 0 # Node ID ba59fb4dd237a5a49fb76b5efb9bfea1a26e1c28 # Parent b65af4967b387cf2c2d0262537df479b6fa9028f (mouse-drag-region): Ignore event end-point if it is not a number. diff -r b65af4967b38 -r ba59fb4dd237 lisp/mouse.el --- a/lisp/mouse.el Mon Sep 23 06:57:54 1996 +0000 +++ b/lisp/mouse.el Mon Sep 23 17:44:50 1996 +0000 @@ -524,7 +524,7 @@ nil (setq end (event-end event) end-point (posn-point end)) - (if end-point + (if (numberp end-point) (setq last-end-point end-point)) (cond @@ -574,7 +574,10 @@ (cons event unread-command-events))) (if (not (= (overlay-start mouse-drag-overlay) (overlay-end mouse-drag-overlay))) - (let* ((stop-point (or (posn-point (event-end event)) last-end-point)) + (let* ((stop-point + (if (numberp (posn-point (event-end event))) + (posn-point (event-end event)) + last-end-point)) ;; The end that comes from where we ended the drag. ;; Point goes here. (region-termination