From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#16196: 24.3.50; Disable ding when scrolling Date: Fri, 20 Dec 2013 11:26:18 +0100 Message-ID: References: <25C13650-058F-45CC-A961-D789709B1179@swipnet.se> <83d2krc34d.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1387535235 14600 80.91.229.3 (20 Dec 2013 10:27:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Dec 2013 10:27:15 +0000 (UTC) Cc: "16196@debbugs.gnu.org" <16196@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 20 11:27:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VtxIc-0007G4-OE for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Dec 2013 11:27:18 +0100 Original-Received: from localhost ([::1]:48743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtxIc-00063b-B6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Dec 2013 05:27:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtxIT-00063P-EC for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 05:27:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtxIN-00046a-1b for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 05:27:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtxIM-00045s-UO for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 05:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VtxIM-0002mi-GO for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 05:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Dec 2013 10:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16196 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16196-submit@debbugs.gnu.org id=B16196.138753518510644 (code B ref 16196); Fri, 20 Dec 2013 10:27:02 +0000 Original-Received: (at 16196) by debbugs.gnu.org; 20 Dec 2013 10:26:25 +0000 Original-Received: from localhost ([127.0.0.1]:59552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtxHl-0002lc-E9 for submit@debbugs.gnu.org; Fri, 20 Dec 2013 05:26:25 -0500 Original-Received: from mailfe03.swip.net ([212.247.154.65]:40389 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VtxHi-0002lM-9Z for 16196@debbugs.gnu.org; Fri, 20 Dec 2013 05:26:23 -0500 X-T2-Spam-Status: No, hits=0.0 required=5.0 tests=MIME_QP_LONG_LINE Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 295359456; Fri, 20 Dec 2013 11:26:19 +0100 Original-Received: from [172.16.2.162] (unknown [176.57.193.190]) (Authenticated sender: jhd) by hosdjarv.se (Postfix) with ESMTPSA id 8C2B51A01EB; Fri, 20 Dec 2013 10:26:19 +0000 (UTC) In-Reply-To: <83d2krc34d.fsf@gnu.org> X-Mailer: iPhone Mail (11B554a) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82274 Archived-At: Hello.=20 20 dec 2013 kl. 09:56 skrev Eli Zaretskii : >> From: Jan Dj=C3=A4rv >> Date: Fri, 20 Dec 2013 07:08:37 +0100 >>=20 >> I think Emacs should by default not beep at all when scrolling and no mov= ement can be done. >=20 > This could be hard to implement. Most scrolling commands just examine > the text around point, and set the window-start for the next > redisplay, so they don't really know when no movement can be done. > Thus, the exact conditions for bitching "End of buffer" are not at all > what you could imagine, and not easily correlated with the situation > you describe. For example, the next-line and previous-line commands > signal these errors when they find they are unable to scroll text, > something that might be utterly unrelated to hitting end of buffer. I have in my .emacs: (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 directi= on. So it can't be that hard.=20 Jan D.=20 >=20 >> It should just ignore it and do nothing, like most applications do. >=20 > Well, "do nothing" is something Emacs cannot easily do in this case, > since the part that "does nothing" is redisplay, which has no idea > about the scrolling command that just ran. >=20 >> At the very least there should be an option to turn off scrollrelated bee= ping. >=20 > This should be much easier to implement, although you may be surprised > to see in how many places we throw that particular error. (Hint: grep > the Lisp sources for "'end-of-file".) >=20 > Patches are welcome, as usual.