On Mon, 21 Mar 2005 02:36:08 +0100, David Kastrup <[EMAIL PROTECTED]> 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 _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel