all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jorgen Schäfer" <jorgen.schaefer@gmail.com>
To: John Wiegley <jwiegley@gmail.com>
Cc: 23098@debbugs.gnu.org
Subject: bug#23098: 25.0.92; (recenter -1) can leave point in the middle of the window
Date: Mon, 28 Mar 2016 13:10:23 +0000	[thread overview]
Message-ID: <CALqDrSfJvTeBWrQ9bv9jHn97MNHSSgK7muO+zhz6Ky3ZqPOZXA@mail.gmail.com> (raw)
In-Reply-To: <m2r3ewstu0.fsf@newartisans.com>

[-- Attachment #1: Type: text/plain, Size: 1559 bytes --]

On Sun, Mar 27, 2016 at 12:33 AM John Wiegley <jwiegley@gmail.com> wrote:

> So is the bug here that it can't be done, or that (recenter -1) by itself
> doesn't do what you think it should?


As an end user, I expect `recenter-to-bottom' to cycle the line with point
on it between the top, middle and bottom of the current window. The problem
described in this report means that Emacs does not actually do this – the
line with point on it does not ever go even near the bottom of the window.

There is a technical reason for this problem: Emacs can not, actually,
display a multi-line overlay only partly. This is a shortcoming of Emacs,
but I assume this is non-trivial to fix. When Emacs notices it can not
fulfill a scroll request, it will use a fall back algorithm.

When I, as a user, try to display a line at the bottom of a window, it
would appear to me that trying to keep the line as close to the bottom as
possible instead of the middle of the window is a better fall back.

Setting scroll-conservatively to a large value is a way for the user to
work around this behavior. But this workaround also affects all the other
times a user tries to scroll the buffer. So this is not a fix, it's a
workaround with unintended and rather large side effects completely
unrelated to this.

A similar problems exist for programmers trying to implement a specific
behavior in buffers without prescribing to users how their normal scrolling
behaves.

This situation strikes me as an issue Emacs could address.

Regards,
Jorgen

[-- Attachment #2: Type: text/html, Size: 1954 bytes --]

  parent reply	other threads:[~2016-03-28 13:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-23 18:40 bug#23098: 25.0.92; (recenter -1) can leave point in the middle of the window Jorgen Schaefer
2016-03-23 19:18 ` Eli Zaretskii
2016-03-23 19:40   ` Jorgen Schäfer
2016-03-23 20:22     ` Eli Zaretskii
2016-03-24  8:12       ` Jorgen Schäfer
2016-03-24 15:47         ` Eli Zaretskii
2016-03-24 16:27           ` Jorgen Schäfer
2016-03-24 16:38             ` Eli Zaretskii
2016-03-26 23:27     ` John Wiegley
2016-03-27  8:35       ` Andreas Schwab
2016-03-27 15:07         ` Drew Adams
2016-03-28 13:10       ` Jorgen Schäfer [this message]
2016-03-28 17:28         ` Eli Zaretskii
2016-03-28 17:41           ` Jorgen Schäfer
2016-03-28 17:59             ` Eli Zaretskii

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=CALqDrSfJvTeBWrQ9bv9jHn97MNHSSgK7muO+zhz6Ky3ZqPOZXA@mail.gmail.com \
    --to=jorgen.schaefer@gmail.com \
    --cc=23098@debbugs.gnu.org \
    --cc=jwiegley@gmail.com \
    /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.