aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1998-03-14 08:20:37 +0000
committerRichard M. Stallman1998-03-14 08:20:37 +0000
commit0320e66f47cb51d42ec66d15c54be24ccf0e5075 (patch)
treebfef45d9521d3bdc281f13d7a93b7ff474ffad81 /lisp
parent65627aad683a648e510b5dd204f6b18086b99054 (diff)
downloademacs-0320e66f47cb51d42ec66d15c54be24ccf0e5075.tar.gz
emacs-0320e66f47cb51d42ec66d15c54be24ccf0e5075.zip
(mouse-scroll-subr): Handle if window-end returns nil.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mouse.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 4741d5fc8f6..2241578cffc 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -478,11 +478,13 @@ Upon exit, point is at the far edge of the newly visible text."
478 (progn 478 (progn
479 (set-window-start window (point)) 479 (set-window-start window (point))
480 (if (natnump jump) 480 (if (natnump jump)
481 (progn 481 (if (window-end window)
482 (goto-char (window-end window)) 482 (progn
483 ;; window-end doesn't reflect the window's new 483 (goto-char (window-end window))
484 ;; start position until the next redisplay. Hurrah. 484 ;; window-end doesn't reflect the window's new
485 (vertical-motion (1- jump) window)) 485 ;; start position until the next redisplay.
486 (vertical-motion (1- jump) window))
487 (vertical-motion (- (window-height window) 2)))
486 (goto-char (window-start window))) 488 (goto-char (window-start window)))
487 (if overlay 489 (if overlay
488 (move-overlay overlay start (point))) 490 (move-overlay overlay start (point)))