diff options
| author | Richard M. Stallman | 1994-06-25 23:48:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-25 23:48:04 +0000 |
| commit | d2287ded099c3465669510bcff1d3984c486e677 (patch) | |
| tree | 2f5effe34729cd96e3111e1e9b82fbb3dcfe26cf | |
| parent | 4556b700ea7c816ed120170a5f1cdf3bfdbe5689 (diff) | |
| download | emacs-d2287ded099c3465669510bcff1d3984c486e677.tar.gz emacs-d2287ded099c3465669510bcff1d3984c486e677.zip | |
(mouse-scroll-subr): Don't do anything special at eob.
(mouse-drag-region): Don't treat scrolling differently at eob.
(mouse-drag-secondary): Likewise.
| -rw-r--r-- | lisp/mouse.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 4a3e1b17322..e2892dc4208 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -177,13 +177,13 @@ Upon exit, point is at the far edge of the newly visible text." | |||
| 177 | (goto-char (window-start window))) | 177 | (goto-char (window-start window))) |
| 178 | (if overlay | 178 | (if overlay |
| 179 | (move-overlay overlay start (point))) | 179 | (move-overlay overlay start (point))) |
| 180 | (setq eobp (eobp)) | ||
| 180 | ;; Now that we have scrolled WINDOW properly, | 181 | ;; Now that we have scrolled WINDOW properly, |
| 181 | ;; put point back where it was for the redisplay | 182 | ;; put point back where it was for the redisplay |
| 182 | ;; so that we don't mess up the selected window. | 183 | ;; so that we don't mess up the selected window. |
| 183 | (or (eq window (selected-window)) | 184 | (or (eq window (selected-window)) |
| 184 | (goto-char opoint)) | 185 | (goto-char opoint)) |
| 185 | (if (not (eobp)) | 186 | (sit-for mouse-scroll-delay))))) |
| 186 | (sit-for mouse-scroll-delay)))))) | ||
| 187 | (or (eq window (selected-window)) | 187 | (or (eq window (selected-window)) |
| 188 | (goto-char opoint)))) | 188 | (goto-char opoint)))) |
| 189 | 189 | ||
| @@ -247,8 +247,7 @@ release the mouse button. Otherwise, it does not." | |||
| 247 | ((< mouse-row top) | 247 | ((< mouse-row top) |
| 248 | (mouse-scroll-subr start-window (- mouse-row top) | 248 | (mouse-scroll-subr start-window (- mouse-row top) |
| 249 | mouse-drag-overlay start-point)) | 249 | mouse-drag-overlay start-point)) |
| 250 | ((and (not (eobp)) | 250 | ((>= mouse-row bottom) |
| 251 | (>= mouse-row bottom)) | ||
| 252 | (mouse-scroll-subr start-window (1+ (- mouse-row bottom)) | 251 | (mouse-scroll-subr start-window (1+ (- mouse-row bottom)) |
| 253 | mouse-drag-overlay start-point))))))))) | 252 | mouse-drag-overlay start-point))))))))) |
| 254 | (if (consp event) | 253 | (if (consp event) |
| @@ -643,8 +642,7 @@ This must be bound to a button-down mouse event." | |||
| 643 | ((< mouse-row top) | 642 | ((< mouse-row top) |
| 644 | (mouse-scroll-subr start-window (- mouse-row top) | 643 | (mouse-scroll-subr start-window (- mouse-row top) |
| 645 | mouse-secondary-overlay start-point)) | 644 | mouse-secondary-overlay start-point)) |
| 646 | ((and (not (eobp)) | 645 | ((>= mouse-row bottom) |
| 647 | (>= mouse-row bottom)) | ||
| 648 | (mouse-scroll-subr start-window (1+ (- mouse-row bottom)) | 646 | (mouse-scroll-subr start-window (1+ (- mouse-row bottom)) |
| 649 | mouse-secondary-overlay start-point))))))))) | 647 | mouse-secondary-overlay start-point))))))))) |
| 650 | 648 | ||