From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#5718: scroll-margin in buffer with small line count. Date: Sat, 14 Jan 2017 09:58:38 +0200 Message-ID: <83o9zaax8x.fsf@gnu.org> References: <4B9D1C61.70903@gmail.com> <87mvkjy0l5.fsf@users.sourceforge.net> <83fuqbfhpb.fsf@gnu.org> <87a8ggwcoo.fsf@users.sourceforge.net> <83inv4cc0s.fsf@gnu.org> <87d1ka17dr.fsf@users.sourceforge.net> <834m5l9g1d.fsf@gnu.org> <874m5j19wi.fsf@users.sourceforge.net> <83zina75pa.fsf@gnu.org> <87pok555q4.fsf@users.sourceforge.net> <831swfcmhz.fsf@gnu.org> <871sw6z32n.fsf@users.sourceforge.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1484380756 21369 195.159.176.226 (14 Jan 2017 07:59:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2017 07:59:16 +0000 (UTC) Cc: ahyatt@gmail.com, 5718@debbugs.gnu.org, gavenkoa@gmail.com To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 14 08:59:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cSJEy-0004kN-A6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jan 2017 08:59:08 +0100 Original-Received: from localhost ([::1]:46894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSJF2-0004Gh-Lu for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jan 2017 02:59:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSJEw-0004GR-Jj for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2017 02:59:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSJEr-0001wE-Re for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2017 02:59:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37901) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cSJEr-0001w7-Nq for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2017 02:59:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cSJEr-0002Fm-HG for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2017 02:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Jan 2017 07:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5718 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5718-submit@debbugs.gnu.org id=B5718.14843807238639 (code B ref 5718); Sat, 14 Jan 2017 07:59:01 +0000 Original-Received: (at 5718) by debbugs.gnu.org; 14 Jan 2017 07:58:43 +0000 Original-Received: from localhost ([127.0.0.1]:53300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cSJEZ-0002FG-LS for submit@debbugs.gnu.org; Sat, 14 Jan 2017 02:58:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cSJEY-0002F5-Bb for 5718@debbugs.gnu.org; Sat, 14 Jan 2017 02:58:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSJES-0001uc-94 for 5718@debbugs.gnu.org; Sat, 14 Jan 2017 02:58:37 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSJEL-0001rZ-FH; Sat, 14 Jan 2017 02:58:29 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4434 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cSJEK-0004Wk-7P; Sat, 14 Jan 2017 02:58:28 -0500 In-reply-to: <871sw6z32n.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:128111 Archived-At: > From: npostavs@users.sourceforge.net > Cc: 5718@debbugs.gnu.org, ahyatt@gmail.com, gavenkoa@gmail.com > Date: Fri, 13 Jan 2017 23:18:56 -0500 > > Looks like the same kind of problem as the other case, I can fix it > again by subtracting frame_line_height, though again, subtracting the > partial height is probably more correct. I think you are right on both counts. Computing the partial height of the last visible line shouldn't be hard, I think. Let me know if you need help with that. Thanks.