emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: --without-toolkit-scroll-bars at runtime?


From: Ehud Karni
Subject: Re: --without-toolkit-scroll-bars at runtime?
Date: Tue, 22 Mar 2005 16:29:10 +0200

On Mon, 21 Mar 2005 02:36:08 +0100, David Kastrup <address@hidden> wrote:
>                                          you can't control the scroll
> amount to get just the right window start for getting a
> block/function/loop fully on-screen.  Something which, by the way, is
> also hard to do by keyboard given Emacs' recenter policies.

May be the following commands can help you achieve this.

(defun line-to-top (arg)
  "move current line to top of window"
    (interactive "p")
    (recenter (1- arg))
    (middle-window))

(defun line-to-bottom (arg)
  "move current line to bottom of window"
    (interactive "p")
    (recenter (- (window-height) (1+ arg)))
    (middle-window))

Ehud.


--
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry




reply via email to

[Prev in Thread] Current Thread [Next in Thread]