From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Re: Auto-Scrolling in Percentage Distance? Date: Tue, 5 May 2009 13:18:38 -0400 Message-ID: References: <87y6tbh9gz.fsf@ubuntu.domain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241543962 14807 80.91.229.12 (5 May 2009 17:19:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 May 2009 17:19:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andy Stewart Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 05 19:19:13 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M1OIR-0005Uy-5C for geh-help-gnu-emacs@m.gmane.org; Tue, 05 May 2009 19:19:11 +0200 Original-Received: from localhost ([127.0.0.1]:58158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1OIQ-0006Cc-7Q for geh-help-gnu-emacs@m.gmane.org; Tue, 05 May 2009 13:19:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1OI4-0006CJ-V8 for help-gnu-emacs@gnu.org; Tue, 05 May 2009 13:18:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1OHz-0006Aj-IO for help-gnu-emacs@gnu.org; Tue, 05 May 2009 13:18:47 -0400 Original-Received: from [199.232.76.173] (port=33220 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1OHz-0006Ag-CJ for help-gnu-emacs@gnu.org; Tue, 05 May 2009 13:18:43 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.245]:64954) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1OHz-0005Fj-4c for help-gnu-emacs@gnu.org; Tue, 05 May 2009 13:18:43 -0400 Original-Received: by an-out-0708.google.com with SMTP id b38so2940717ana.21 for ; Tue, 05 May 2009 10:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zTmEd4vf3HfCX+BAj99jTNudAtbcwlA1DhGfE/qho7I=; b=Zmdh44JQj90aPS12ezOA4tn93lJDOcJr/wXCYXdujbZdb3zms0Agts2mZ4Vu5idZPr 5tj2DFBb+a+6d8Be7STPPkx6+TvQQNCTl1yfmh+qaW3qJmoQgRaF9L3iwd/Ajv5dlz2W 6e7p98dWOeowfBwuBuToPcGHCXIpP0bHgcy0M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=AYxrwpIsR0D+0C6TC22i8RYsGf1eHOZdBq2PTzf/lQwwoldU2Z8tBYMTqjMgchzwP9 jIxmrT6btcIh9f6J+rvLqkzbfE7XZhK0ZRu1r7NjzOGSjJi/UVzM/FghtroW3NXNX2/h hHJGM1F6VVhvkG143Vc1/PTMKNKPmvfVXqfaM= Original-Received: by 10.101.70.6 with SMTP id x6mr574157ank.56.1241543920774; Tue, 05 May 2009 10:18:40 -0700 (PDT) In-Reply-To: <87y6tbh9gz.fsf@ubuntu.domain> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64194 Archived-At: Hey Andy, Thanks for the reply. On Tue, May 5, 2009 at 11:10 AM, Andy Stewart wrote: > Hi Tim, > > Tim Visher 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