From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.bugs Subject: bug#5718: scroll-margin in buffer with small line count. Date: Thu, 11 Aug 2016 00:11:22 -0400 Message-ID: References: <4B9D1C61.70903@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470888744 2837 195.159.176.226 (11 Aug 2016 04:12:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2016 04:12:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) Cc: 5718@debbugs.gnu.org To: Oleksandr Gavenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 11 06:12:21 2016 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 1bXhLv-0000Z0-CJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2016 06:12:19 +0200 Original-Received: from localhost ([::1]:45374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXhLs-0001JZ-Ae for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2016 00:12:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXhLk-0001HT-0n for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 00:12:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXhLe-0001M1-W7 for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 00:12:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXhLe-0001Lg-Sd for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 00:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bXhLe-0001n5-9M for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 00:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Aug 2016 04:12:02 +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.14708886936835 (code B ref 5718); Thu, 11 Aug 2016 04:12:02 +0000 Original-Received: (at 5718) by debbugs.gnu.org; 11 Aug 2016 04:11:33 +0000 Original-Received: from localhost ([127.0.0.1]:52854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXhLB-0001mA-9P for submit@debbugs.gnu.org; Thu, 11 Aug 2016 00:11:33 -0400 Original-Received: from mail-qk0-f170.google.com ([209.85.220.170]:33396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXhL9-0001lx-Qi for 5718@debbugs.gnu.org; Thu, 11 Aug 2016 00:11:32 -0400 Original-Received: by mail-qk0-f170.google.com with SMTP id t7so63744312qkh.0 for <5718@debbugs.gnu.org>; Wed, 10 Aug 2016 21:11:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=55k4tJUFRXE38d9jLz3XS5erzA5peCXGWI7HwhiE4JU=; b=FbGdBRJ13iNUfTrNWQkNpJWb+McYHMYbVeajEcd8gFdudNuVj68X8PmpAvJjcOOCYQ vUBHBN3n/scO6cB2tyA1qQnYu8HMo5cUDzgWMUcJ0BtN5vCTvjSaaoZ1SmJH0AI6+sfz MUk6imbWVDSmFJ2TQiLNxdZIcjNF1pwyFAw3IY0n4A0p82np1Z7ZTGPQJatjQ+N5nP5V AOdmvE/2pz39IbEvdtPJr8RAFkEF0zCooadZ6z1XQTghxXpGxxHKwAh50ybEN8ogUu49 Ses2i/DlRDKoiN96+/Pfe9X1tj7d8dZvGkUugIOfkCJCQUyOOdDOU4UJGf+F61fW//EO G7FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=55k4tJUFRXE38d9jLz3XS5erzA5peCXGWI7HwhiE4JU=; b=URD6gIo02QBdqXSB3p61kWFCI/heN9TQh5t9bRBFD59H61Aw0EYmbGI1J/ygMV3eS7 tRwTA1yB1Ap2v5xqoPFfFAcApOcQqtcEQNiI1RXuPW2fPErfV/I1Y+PoUKA5HKIygY0L yFxpht8e1wRucWAZeOhoptkGdP2vvkbOw+JEj4qiUjeV+clXXQXJkGLCDaVYxf8mc+df ZuevTJCvr4K+2gKT/w/I9UGUYHr5juF395FXyBKY5RrSwddQfx2MrcyrQTz9oCIB9OTZ J6LXpfwSUUKOojbr/fqLpva4K0yIO0wEVU3QANMKZTv9Wjul2hbtlLEkmZ0afeYf1DpD wLiA== X-Gm-Message-State: AEkooutsGVU8X4mLC5JwbVw90c+d6aEbNyIk0f3LYf77IQTbo2SvDSKyWNP24PFWHUB0/A== X-Received: by 10.55.36.131 with SMTP id k3mr8459792qkk.86.1470888686512; Wed, 10 Aug 2016 21:11:26 -0700 (PDT) Original-Received: from Andrews-MacBook-Pro.local.ahyatt-laptop (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id u129sm447489qkf.25.2016.08.10.21.11.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Aug 2016 21:11:23 -0700 (PDT) In-Reply-To: <4B9D1C61.70903@gmail.com> (Oleksandr Gavenko's message of "Sun, 14 Mar 2010 19:26:57 +0200") 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:122056 Archived-At: Oleksandr Gavenko writes: > I have official Emacs 22.3 from FSF ftp server for Windows. > > When set > > (setq scroll-margin 4) > > in buffer with window width 6 lines real margin value is 1 > (so real line scrolling done when press on second line > or when press on fifth line). > > Experiment show such dependence of real margin on line count: > > lines real-scroll-margin > 3,4,5,6 1 > 7,8,9,10 2 > 11,12,13,14 3 >>15 4 > > I count from 3 as when try make less lines Emacs warn. > > I think that whose modify scroll-margin want to see as many > as possible margin value up to its customization value. > > This formula produce such values: > > best-scroll-margin = min( (line_count - 1)/2, scroll-margin) > > So previous table changed to: > > lines best-scroll-margin > 3,4 1 > 5,6 2 > 7,8 3 >>9 4 > > Also as you can see in proposal case > user switch start work from 9 lines in window, not 15! > > Please implement described behaviour. I'm having a hard time understanding this report. However, it seems like more like a wishlist request than a bug: you want to change the scrolling behavior. I'm going to change this to wishlist for now, but let me know if I've misunderstood, please.