all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Noam Postavsky <npostavs@users.sourceforge.net>
Cc: 13791@debbugs.gnu.org, dgutov@yandex.ru
Subject: bug#13791: 24.3.50; scroll-margin docstring says "recenter"
Date: Tue, 30 Jan 2018 15:56:24 +0200	[thread overview]
Message-ID: <83h8r3h2lz.fsf@gnu.org> (raw)
In-Reply-To: <87shaoi6sn.fsf@users.sourceforge.net> (message from Noam Postavsky on Mon, 29 Jan 2018 18:28:24 -0500)

> From: Noam Postavsky <npostavs@users.sourceforge.net>
> Cc: Dmitry Gutov <dgutov@yandex.ru>,  13791@debbugs.gnu.org
> Date: Mon, 29 Jan 2018 18:28:24 -0500
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Dmitry Gutov <dgutov@yandex.ru>
> >> 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?





  reply	other threads:[~2018-01-30 13:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-23  0:21 bug#13791: 24.3.50; scroll-margin docstring says "recenter" Dmitry Gutov
2013-02-23 10:18 ` Eli Zaretskii
2013-02-23 13:08   ` Dmitry Gutov
2013-02-23 14:50     ` Eli Zaretskii
2013-02-23 18:08       ` Dmitry Gutov
2013-02-23 18:47         ` Eli Zaretskii
2013-02-23 19:19           ` Dmitry Gutov
2013-02-23 20:19             ` Eli Zaretskii
2018-01-29 23:28   ` Noam Postavsky
2018-01-30 13:56     ` Eli Zaretskii [this message]
2018-01-31  3:42       ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83h8r3h2lz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=13791@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.