all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to achieve desired automatic scrolling behavior
Date: Wed, 29 May 2013 18:34:05 +0300	[thread overview]
Message-ID: <83li6x6brm.fsf@gnu.org> (raw)
In-Reply-To: <CAFM41H2VKeQ_P0JhgLH+x18OuqQeKuxJD7Pdo=Hsr0oOqgDHzQ@mail.gmail.com>

> Date: Wed, 29 May 2013 09:57:32 -0400
> From: Barry OReilly <gundaetiapo@gmail.com>
> 
> I'm asking about two things, but I'll focus on the first. The simplest way
> to describe it: if a command moves point by line off screen, I want to
> scroll one line and if point moves more than that off screen, I want to
> recenter point.
> 
> One would think scroll-conservatively==1 would fit the bill, but it doesn't
> when lines wrap. If I arrow down (actually: Evil's j command) I'm fine
> until I hit a line that wraps visually, then I get an undesired recenter.

I don't understand why: did you disable visual-line-mode (it is ON by
default)?  Or maybe Evil does something with the related commands and
features?  Because by default, pressing the down arrow key once moves
1 _screen_ line down, which still fits the scroll-conservatively==1
condition, and should give you the behavior you want.

I just tried what I think you are doing, when lines are wrapped, and
didn't have any recentering.  How about a recipe to reproduce this
starting from "emacs -Q"?



  reply	other threads:[~2013-05-29 15:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-29 13:57 How to achieve desired automatic scrolling behavior Barry OReilly
2013-05-29 15:34 ` Eli Zaretskii [this message]
2013-05-29 15:55   ` Frank Fischer
  -- strict thread matches above, loose matches on Subject: below --
2013-05-30 18:23 Barry OReilly
2013-05-30 19:08 ` Eli Zaretskii
2013-05-29 23:02 Barry OReilly
2013-05-30 14:45 ` Stefan Monnier
     [not found] <mailman.26006.1368807846.855.help-gnu-emacs@gnu.org>
2013-05-25 16:37 ` Javier
2013-05-25 19:06   ` Emanuel Berg
2013-05-17 16:24 Barry OReilly
2013-05-17 23:37 ` Bob Proulx

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=83li6x6brm.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.