diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-10-19 07:25:03 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-10-19 07:25:03 +0000 |
commit | 8e56b19a32f449df805ec307bf4777c0ba6b2f9c (patch) | |
tree | 29d1b33ad616f7fe4d56d54f1f6a0d7c5eb318d4 | |
parent | aa44b9c907042ef6c26e3c6571e2d79e7d2e28de (diff) | |
download | emacs-8e56b19a32f449df805ec307bf4777c0ba6b2f9c.tar.gz |
Fix last change.
-rw-r--r-- | lisp/scroll-bar.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/scroll-bar.el b/lisp/scroll-bar.el index 29ad9a70dab..742e769a370 100644 --- a/lisp/scroll-bar.el +++ b/lisp/scroll-bar.el @@ -314,9 +314,8 @@ EVENT should be a scroll bar click." ((eq part 'up) ;; Avoid ringing the bell when at beginning of ;; buffer, since that causes redisplay to bitch - ;; endlessly when visible-bell is in effect and - ;; the toolkit sends us many scroll-bar clicks one - ;; after the other. + ;; endlessly when visible-bell is in effect, for + ;; some reason. (if (= 0 (save-excursion (goto-char (window-start)) (forward-line -1))) @@ -324,8 +323,7 @@ EVENT should be a scroll bar click." (message "Beginning of buffer"))) ((eq part 'down) ;; Avoid ringing the bell if already at end of - ;; buffer; see the commentary above for the - ;; reasons. + ;; buffer. (if (= 0 (save-excursion (forward-line 2))) (scroll-up 1) (message "End of buffer"))) |