Subject: bug#16196: 24.3.50; Disable ding when scrolling

From: Eli Zaretskii <[email-masked]>
Date: Fri, 20 Dec 2013 12:43:09 +0200

> Cc: "[email-masked]" <[email-masked]>
> From: Jan Djärv <[email-masked]>
> Date: Fri, 20 Dec 2013 11:26:18 +0100
> 
> (setq mwheel-scroll-up-function
>      '(lambda (amt)
>         (if (< (window-end) (point-max)) (scroll-up amt))))
> 
> (setq mwheel-scroll-down-function
>      '(lambda (amt)
>         (if (> (window-start) (point-min)) (scroll-down amt))))
> 
> This does what this bug report talks about, except in the horizontal direction. So it can't be that hard. 

Did you try that when the beginning or the end of the buffer is a
large image, or a line with a font so large it doesn't fit in the
window?

In any case, if the issue is limited to wheel scrolling, it might
indeed be simpler.  I thought you were suggesting to disable the error
for any type of scrolling, not just by the mouse wheel.