From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12811: 24.3.50; `scroll-up/down-aggressively' don't seem to work as expected Date: Sun, 11 Nov 2012 19:21:17 +0200 Message-ID: <83txswvywi.fsf@gnu.org> References: <83ip9i3c59.fsf@gnu.org> <831ug62z3c.fsf@gnu.org> <83r4o51h92.fsf@gnu.org> <83zk2ow1ry.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1352654512 21525 80.91.229.3 (11 Nov 2012 17:21:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2012 17:21:52 +0000 (UTC) Cc: 12811@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 11 18:22:02 2012 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 1TXbEP-0005qN-Im for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2012 18:22:01 +0100 Original-Received: from localhost ([::1]:39580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXbEG-0001Uu-1o for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Nov 2012 12:21:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXbEA-0001Ud-D7 for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 12:21:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXbE7-0004hu-Az for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 12:21:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXbE7-0004hp-7x for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 12:21:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TXbEQ-00059w-GA for bug-gnu-emacs@gnu.org; Sun, 11 Nov 2012 12:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Nov 2012 17:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12811 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12811-submit@debbugs.gnu.org id=B12811.135265448919790 (code B ref 12811); Sun, 11 Nov 2012 17:22:02 +0000 Original-Received: (at 12811) by debbugs.gnu.org; 11 Nov 2012 17:21:29 +0000 Original-Received: from localhost ([127.0.0.1]:33421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TXbDs-000598-Va for submit@debbugs.gnu.org; Sun, 11 Nov 2012 12:21:29 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:42286) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TXbDq-00058x-7j for 12811@debbugs.gnu.org; Sun, 11 Nov 2012 12:21:27 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MDC005002QTL700@a-mtaout20.012.net.il> for 12811@debbugs.gnu.org; Sun, 11 Nov 2012 19:21:05 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MDC005DB2V4AW60@a-mtaout20.012.net.il>; Sun, 11 Nov 2012 19:21:05 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-Spam-Score: 1.5 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: 1.5 (+) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:66768 Archived-At: > Date: Sun, 11 Nov 2012 17:55:59 +0100 > From: Dani Moncayo > Cc: 12811@debbugs.gnu.org > > > Emacs doesn't count in lines, it counts in pixels. And since a line > > has a finite size, where exactly those 70% end is not well determined > > (is it the top of the line, the bottom of the line, somewhere in > > between?). > > I don't see the point of using pixel as unit of measure here. The > unit should be the line, because the problem to solve here can > (should) be expressed in terms of lines; going down to the pixel level > is unnecessary and confusing, IMO. You forget about variable fonts. One line can be very large, another very small. Scrolling must still do something reasonable with them. > So, given a window which is W lines high Since lines can have different heights, "W lines high" is not well defined. In extreme case, a window can be 1 line high, but scrolling it bring 20 lines into view. It is impossible to have reasonable scrolling if you go by lines.