all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: 22395-done@debbugs.gnu.org
Subject: bug#22395: 25.0.50; 'C-v' scrolls only a half of the window height
Date: Mon, 18 Jan 2016 18:25:24 +0200	[thread overview]
Message-ID: <83y4bmdfd7.fsf@gnu.org> (raw)
In-Reply-To: <CAH8Pv0iG-e9T0Lo097jqmhGW29449AAcperXm2iSdcpaitsaog@mail.gmail.com> (message from Dani Moncayo on Sun, 17 Jan 2016 21:50:16 +0100)

> Date: Sun, 17 Jan 2016 21:50:16 +0100
> From: Dani Moncayo <dmoncayo@gmail.com>
> 
> 1. Eval:
>     (setq scroll-preserve-screen-position t)
>     (setq scroll-margin 2)
> 
> 2. Visit the attached file.
> 
> On my system, I initially see lines 1 to 33.
> 
> 3. Type 'C-v'
> 
> I observe that 'C-v' has scrolled the buffer vertically, but only by
> about a half of the window height (I now see lines 16 to 48).
> Subsequent 'C-v' commands do the same: they scroll the buffer by a
> half of the window.
> 
> This seems wrong.  The amount of scrolling should be "a near full
> screen", as described in 'C-h k C-v'.

Start the same recipe from line #3 or greater, and the "bug" goes
away.

You asked Emacs to do the impossible: preserve the screen position of
point at the first window line and also not to allow point to enter
the first 2 lines of the window.  Emacs didn't know what to do with
this conflict.  Now it does.





      parent reply	other threads:[~2016-01-18 16:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-17 20:50 bug#22395: 25.0.50; 'C-v' scrolls only a half of the window height Dani Moncayo
2016-01-18 10:30 ` martin rudalics
2016-01-18 13:20   ` Dani Moncayo
2016-01-18 16:26   ` Eli Zaretskii
2016-01-18 16:25 ` Eli Zaretskii [this message]

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=83y4bmdfd7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=22395-done@debbugs.gnu.org \
    --cc=dmoncayo@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.