From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Will Willis Newsgroups: gmane.emacs.help Subject: scroll buffer so that current line becomes first visible line Date: Thu, 23 Apr 2009 21:18:20 -0500 Message-ID: <6ee1e6090904231918h45f0416ap24fa9d775348b628@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240539535 12514 80.91.229.12 (24 Apr 2009 02:18:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Apr 2009 02:18:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 24 04:20:14 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 1LxB1R-0005lC-Jp for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Apr 2009 04:20:13 +0200 Original-Received: from localhost ([127.0.0.1]:46629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxB01-0004rp-WF for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Apr 2009 22:18:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxAzf-0004r7-IC for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 22:18:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxAzf-0004qf-0F for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 22:18:23 -0400 Original-Received: from [199.232.76.173] (port=57891 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxAze-0004qZ-Mr for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 22:18:22 -0400 Original-Received: from qw-out-1920.google.com ([74.125.92.148]:6421) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LxAzd-0002cq-RP for help-gnu-emacs@gnu.org; Thu, 23 Apr 2009 22:18:22 -0400 Original-Received: by qw-out-1920.google.com with SMTP id 4so747715qwk.24 for ; Thu, 23 Apr 2009 19:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=JxYHclgjP9OjbNISy5QHLDjtNeizNs3ZX7C3Lf7H5PY=; b=QJ/mVXI+l0OlaZCa3oHSZvY2sLqIOV9Y69jKFCobir5dPQRRpdNWjnp5FQw8bkX3ZU o0AaEXX03p0CqhbJ7btKwYZqQFiC8f9DZg2Gb/B15OeUJca/4g2enZfmXMhcG7d1hSK1 Wqt4Z2tkK2tSI/UDvwRTNjfA6DNEDV8Dj1yww= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=O/Y2dw54prGmOWMXXZMbR+nnM3kDgDJCUk4U2QvcjxBiOb09TjFwKPfp7W9kd42Y6c unzlUi3LYoQXIdTG27jQbD3kUtkCopzIAQIqDaWvAvJm9rSoxkaugEWSdoN8d7/kWGcm oyp30AkcHGtrQv66CUg/1wtTjtDmvGfH8IH9Q= Original-Received: by 10.224.28.66 with SMTP id l2mr2271844qac.52.1240539500541; Thu, 23 Apr 2009 19:18:20 -0700 (PDT) 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:63995 Archived-At: Hello, Is there a command/key binding to scroll my buffer so that the current line (the one with my cursor) becomes the first visible line in the window. This is akin to C-l, but instead of centering to the point, sticking the current line at the top of the window. I'm _not_ looking to move the point to the first line (M-0 M-r). I'm not sure how this would work for shorter files, say only a few lines long, would a buffer who's length is shorter than the window height be able to scroll? Thanks, Will