diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-09-23 17:44:50 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-09-23 17:44:50 +0000 |
commit | 3617aa76fcfd1ac96e6888867ab438587df1753f (patch) | |
tree | 35d5222c9a2b8462ec29dbfb54345c53474c1413 /lisp/mouse.el | |
parent | 57498544b7bbce85f353b03c3cc2ba8af87130a9 (diff) | |
download | emacs-3617aa76fcfd1ac96e6888867ab438587df1753f.tar.gz |
(mouse-drag-region): Ignore event end-point if it is not a number.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r-- | lisp/mouse.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 8da7095bada..ef41a38caad 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -524,7 +524,7 @@ remains active. Otherwise, it remains until the next input event." 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 @@ remains active. Otherwise, it remains until the next input event." (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 |