all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Visher <tim.visher@gmail.com>
To: Andy Stewart <lazycat.manatee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Auto-Scrolling in Percentage Distance?
Date: Tue, 5 May 2009 13:18:38 -0400	[thread overview]
Message-ID: <c115fd3c0905051018g1cee88d0peabf41e0da00b258@mail.gmail.com> (raw)
In-Reply-To: <87y6tbh9gz.fsf@ubuntu.domain>

Hey Andy,

Thanks for the reply.

On Tue, May 5, 2009 at 11:10 AM, Andy Stewart <lazycat.manatee@gmail.com> wrote:
> Hi Tim,
>
> Tim Visher <tim.visher@gmail.com> writes:
>
>> Hello Everyone,
>>
>> I was wondering if anyone had extended Emacs's auto scrolling
>> functionality to be able to set it to a percentage of the buffer
>> rather than lines from the bottom?  If you've ever used (or seen)
>> WriteRoom from Hog Bay, this is the functionality I'm looking for.
>
> http://www.emacswiki.org/cgi-bin/emacs/AutoScroll

That's actually not what I'm looking for.  That seems to scroll a
buffer for you according to a timed interval (probably for reading a
book or long document of some sort).  What I want is to force the
buffer to scroll when my cursor gets, say, 60% from the bottom.  Right
now, Emacs allows you to specify a minimum distance from the bottom
(usually 0) that the cursor should be before this auto-scroll happens
(and usually it centers the text vertically in the buffer, as though
C-l were pressed).  I'd like it to be dynamic.  So if I specify 50%,
and the buffer is 25 lines long, I'd like the buffer to auto-scroll by
one line whenever my cursor travels below 12 lines from the bottom.

Does that make more sense?

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail




      reply	other threads:[~2009-05-05 17:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-05 14:11 Auto-Scrolling in Percentage Distance? Tim Visher
2009-05-05 15:10 ` Andy Stewart
2009-05-05 17:18   ` Tim Visher [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=c115fd3c0905051018g1cee88d0peabf41e0da00b258@mail.gmail.com \
    --to=tim.visher@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lazycat.manatee@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.