From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.devel Subject: Re: --without-toolkit-scroll-bars at runtime? Date: Tue, 22 Mar 2005 16:29:10 +0200 Organization: Mivtach-Simon Insurance agencies Message-ID: <200503221429.j2METAf3012243@beta.mvs.co.il> References: Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1111501767 16616 80.91.229.2 (22 Mar 2005 14:29:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2005 14:29:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 22 15:29:27 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDkNe-0003w7-MX for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2005 15:29:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDkex-0004Lq-TK for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2005 09:47:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDkeT-0004IW-TE for emacs-devel@gnu.org; Tue, 22 Mar 2005 09:46:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDkeL-0004Dp-Ms for emacs-devel@gnu.org; Tue, 22 Mar 2005 09:46:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDkeL-0004Dm-HV for emacs-devel@gnu.org; Tue, 22 Mar 2005 09:46:29 -0500 Original-Received: from [193.16.147.12] (helo=unix.mvs.co.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DDkNe-0001hv-TL; Tue, 22 Mar 2005 09:29:15 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.0/8.13.0) with ESMTP id j2METAAC018336 for ; Tue, 22 Mar 2005 16:29:10 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.12.10/8.12.10) with ESMTP id j2METArU012247 for ; Tue, 22 Mar 2005 16:29:11 +0200 Original-Received: (from root@localhost) by beta.mvs.co.il (8.12.10/8.12.10/Submit) id j2METAf3012243; Tue, 22 Mar 2005 16:29:10 +0200 Original-To: dak@gnu.org In-reply-to: (message from David Kastrup on Mon, 21 Mar 2005 02:36:08 +0100) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.108) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34963 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34963 On Mon, 21 Mar 2005 02:36:08 +0100, David Kastrup 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 Better Safe Than Sorry