From: Eli Zaretskii <eliz@gnu.org>
To: Alan Mackenzie <acm@muc.de>
Cc: 32863@debbugs.gnu.org
Subject: bug#32863: Unsatisfactory "definition" of "vertical scroll position" in Emacs lisp manual and doc string of window-vscroll
Date: Sat, 29 Sep 2018 00:41:54 +0300 [thread overview]
Message-ID: <837ej5710d.fsf@gnu.org> (raw)
In-Reply-To: <20180928152832.GA5172@ACM> (message from Alan Mackenzie on Fri, 28 Sep 2018 15:28:32 +0000)
> Date: Fri, 28 Sep 2018 15:28:32 +0000
> From: Alan Mackenzie <acm@muc.de>
>
> In the Emacs-26.1 Emacs Lisp manual, on page "Vertical Scrolling" there
> is an ostensible definition for "vertical scroll position".
>
> This "definition" says it "is a number, never less than zero. It
> specifies how far to raise the contents of the window."
>
> What should be doing this raising?
The call to set-window-vscroll does that.
> When might it do this?
The automatic calls to set-window-vscroll happen when a screen line is
too tall to be completely visible in a window, and Emacs is asked to
scroll. Try scrolling or vertical motion commands when the window
displays a tall image.
> For what purpose might the contents of the window be raised?
To show the portion of the current line that is not currently visible.
> I find this "definition" totally obscure. I can not make sense of it at
> all. Without understanding what "vertical scroll position" means, the
> entire manual page is meaningless.
Do you understand it now?
> I came to this manual page through not understanding the doc string for
> the function window-vscroll. This says just "Return the amount by which
> WINDOW is scrolled vertically.".
>
> _Is_ scrolled vertically. What on earth does that mean?
See above.
> What is the zero point from which this scrolling is measured?
The zero point is when the top pixel of the window's first screen line
is visible.
> Does this "is" refer to the current visible scrolling, or the
> intended scrolling after the next redisplay?
Since redisplay runs when Emacs is idle, the answer should be obvious,
right?
> This doc string needs clarification.
I'm all ears.
next prev parent reply other threads:[~2018-09-28 21:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-28 15:28 bug#32863: Unsatisfactory "definition" of "vertical scroll position" in Emacs lisp manual and doc string of window-vscroll Alan Mackenzie
2018-09-28 21:41 ` Eli Zaretskii [this message]
2018-10-15 11:48 ` Alan Mackenzie
2018-10-15 15:32 ` Eli Zaretskii
2018-10-15 18:33 ` Alan Mackenzie
2018-10-15 18:47 ` Eli Zaretskii
2018-10-15 19:13 ` Alan Mackenzie
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=837ej5710d.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=32863@debbugs.gnu.org \
--cc=acm@muc.de \
/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.