all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: How to achieve desired automatic scrolling behavior
Date: Thu, 30 May 2013 10:45:41 -0400	[thread overview]
Message-ID: <jwvli6w7ckg.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: CAFM41H0OyZYaDT4TM--xD__bEhi-9SihcZ0e6kBe7kVnkLgEzw@mail.gmail.com

>> Customize scroll-conservatively to 0
>> Advise line-move:
>> (defadvice line-move (around my-advice-line-move activate)
>> (let ((scroll-conservatively 101))
>> ad-do-it))

> Why does the let bound scroll-conservatively not seem to take effect for
> the around advice?

Because the scroll does not happen during the line-move but after it
(line-move just moves point, and once the command is complete,
a redisplay is triggered to reflect the change on screen, at which
point the redisplay code notices that point is "outside the window"
and triggers a scroll to bring it back into view).


        Stefan




  reply	other threads:[~2013-05-30 14:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-29 23:02 How to achieve desired automatic scrolling behavior Barry OReilly
2013-05-30 14:45 ` Stefan Monnier [this message]
  -- 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 13:57 Barry OReilly
2013-05-29 15:34 ` Eli Zaretskii
2013-05-29 15:55   ` Frank Fischer
     [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=jwvli6w7ckg.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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.