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#13791: 24.3.50; scroll-margin docstring says "recenter" Date: Tue, 30 Jan 2018 15:56:24 +0200 Message-ID: <83h8r3h2lz.fsf@gnu.org> References: <87y5efj2wr.fsf@yandex.ru> <83hal3l4ez.fsf@gnu.org> <87shaoi6sn.fsf@users.sourceforge.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1517320549 21202 195.159.176.226 (30 Jan 2018 13:55:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Jan 2018 13:55:49 +0000 (UTC) Cc: 13791@debbugs.gnu.org, dgutov@yandex.ru To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 30 14:55:44 2018 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 1egWNr-0004fL-Su for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jan 2018 14:55:36 +0100 Original-Received: from localhost ([::1]:38810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egWPs-0002HW-SE for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jan 2018 08:57:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egWPM-00022H-7N for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2018 08:57:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egWPG-00031E-Jw for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2018 08:57:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40791) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egWPG-000317-GN for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2018 08:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1egWPG-0001Mo-9U for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2018 08:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jan 2018 13:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13791 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13791-submit@debbugs.gnu.org id=B13791.15173205895212 (code B ref 13791); Tue, 30 Jan 2018 13:57:02 +0000 Original-Received: (at 13791) by debbugs.gnu.org; 30 Jan 2018 13:56:29 +0000 Original-Received: from localhost ([127.0.0.1]:48688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egWOi-0001M0-N7 for submit@debbugs.gnu.org; Tue, 30 Jan 2018 08:56:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egWOh-0001Ln-DB for 13791@debbugs.gnu.org; Tue, 30 Jan 2018 08:56:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egWOU-0002Yu-LY for 13791@debbugs.gnu.org; Tue, 30 Jan 2018 08:56:22 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egWOU-0002Yo-HX; Tue, 30 Jan 2018 08:56:14 -0500 Original-Received: from [176.228.60.248] (port=2914 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1egWOT-0007tG-UW; Tue, 30 Jan 2018 08:56:14 -0500 In-reply-to: <87shaoi6sn.fsf@users.sourceforge.net> (message from Noam Postavsky on Mon, 29 Jan 2018 18:28:24 -0500) 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:142697 Archived-At: > From: Noam Postavsky > Cc: Dmitry Gutov , 13791@debbugs.gnu.org > Date: Mon, 29 Jan 2018 18:28:24 -0500 > > Eli Zaretskii writes: > > >> From: Dmitry Gutov > >> Date: Sat, 23 Feb 2013 04:21:24 +0400 > >> > >> The docstring says: "Recenter the window whenever point gets within this > >> many lines of the top or bottom of the window." > >> > >> That's not entirely accurate. Depending on the value of > >> `scroll-conservatively', the window may get scrolled instead. > > > > That's true. However, how to describe this in a manner that will not > > confuse the reader is less clear. "Recenter or scroll" is not very > > useful, IMO, as it doesn't say which will happen. Suggestions are > > welcome. > > Can't we just add a sentence? "Depending the value of > `scroll-conservatively', the window may be scrolled instead of > recentered." The details in `scroll-conservatively's docstring should > give sufficient accuracy. It's not just scroll-conservatively, AFAIR. I actually like what the manual says better: The variable ‘scroll-margin’ restricts how close point can come to the top or bottom of a window (even if aggressive scrolling specifies a fraction F that is larger than the window portion between the top and the bottom margins). Its value is a number of screen lines; if point comes within that many lines of the top or bottom of the window, Emacs performs automatic scrolling. Note the last sentence: it leaves the exact manner of scrolling vague. Would it be okay to say the same in the doc string?