From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sanjeev Kumar.S" Newsgroups: gmane.emacs.help Subject: Re: How to move the cursor to the bottom of the screen? Date: Wed, 9 Jan 2008 20:34:02 -0800 (PST) Message-ID: <613277.95891.qm@web57710.mail.re3.yahoo.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0496453648==" X-Trace: ger.gmane.org 1199939671 8283 80.91.229.12 (10 Jan 2008 04:34:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2008 04:34:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ye ilho , "B. Smith-Mannschott" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 10 05:34:51 2008 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 1JCp7y-0003ei-2E for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2008 05:34:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCp7a-00042u-GQ for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2008 23:34:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCp7E-0003z0-Q8 for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 23:34:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCp7D-0003wx-Ny for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 23:34:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCp7D-0003wX-HP for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 23:34:03 -0500 Original-Received: from web57710.mail.re3.yahoo.com ([68.142.236.73]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JCp7D-0004DS-4e for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 23:34:03 -0500 Original-Received: (qmail 96182 invoked by uid 60001); 10 Jan 2008 04:34:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=H9FMwCHPOkJzu6oXZd6sL5/UObM+xeJYK4an3PorknUc44JaNHcI+FHtFVmz90+vVcArA7KBfOCvb6ZwijeFsYXBLqvs9lQSpgEfOHRRcrnQx5VqDx08Oh4FfAzl3XLHV9mTp9Hb3hk8e6vbo3wjCYYqPNQwXvaWJN8WGfGIH2I=; X-YMail-OSG: 1WunVHEVM1m47eKFkxtFaKVcfBhO6stmI79bfWAqnx2jQTii.E7p7zB26me6athdD..VOCQuaT99C833HDEqvHfglhUNURz3Azx3XgQ1HMUVLnzIiYzQuuFdFD2MGg-- Original-Received: from [117.192.128.154] by web57710.mail.re3.yahoo.com via HTTP; Wed, 09 Jan 2008 20:34:02 PST In-Reply-To: X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (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:50611 Archived-At: --===============0496453648== Content-Type: multipart/alternative; boundary="0-572517493-1199939642=:95891" Content-Transfer-Encoding: 8bit --0-572517493-1199939642=:95891 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit This is how i do it: (define-key global-map [(control prior)] (lambda (&optional arg) (interactive) (move-to-window-line 0))) you can extend it how-ever you want from here. Sanjeev. Ye ilho wrote: > Will show you a list of key bindings. In particular: > > M-< beginning-of-buffer > M-> end-of-buffer > > M-< can be typed as: > > [ESCape key] [< key] > > On the mac you may be able to hold down command or option while typing > < to get the same effect. Under windows the ALT key will do this. > > / ben > Thank you, Ben. Perhaps I did not state my question correctly or I did not understand your answer because I am a novice in emacs. Please bear with me once again to state what I want to do. I am simply trying to go to the top/middle/bottom of the screen I see at the moment. I also tried your suggestion but that will take me to the beginning/end of buffer but not necessarily what I see on the screen at the moment. For example, if I see the content of file in my emacs screen as follows, I want to somehow to go to abc with one key stroke. ====================== abc def ghi jkl mno ====================== If I did not understand your answer correctly, please correct me. Thank you once again. Ilho <>< -- YES, JESUS LOVES YOU, TOO. For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life(John 3:16). _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. --0-572517493-1199939642=:95891 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit This is how i do it:

(define-key global-map [(control prior)] (lambda (&optional arg) (interactive) (move-to-window-line 0)))
you can extend it how-ever you want from here.

Sanjeev.


Ye ilho <iy2110@columbia.edu> wrote:
> Will show you a list of key bindings. In particular:
>
> M-< beginning-of-buffer
> M-> end-of-buffer
>
> M-< can be typed as:
>
> [ESCape key] [< key]
>
> On the mac you may be able to hold down command or option while typing
> < to get the same effect. Under windows the ALT key will do this.
>
> / ben
>

Thank you, Ben. Perhaps I did not state my question correctly or I did
not understand your answer because I am a novice in emacs. Please bear
with me once again to state what I want to do.

I am simply trying to go to the top/middle/bottom of the screen I see
at the moment.
I also tried your suggestion but that will take me to the
beginning/end of buffer but not necessarily what I see on the screen
at the moment.

For example, if I see the content of file in my emacs screen as
follows, I want to somehow to go to abc with one key stroke.

======================
abc
def
ghi
jkl
mno
======================

If I did not understand your answer correctly, please correct me.
Thank you once again.

Ilho <><

--
YES, JESUS LOVES YOU, TOO.
For God so loved the world that he gave his one a nd only Son, that
whoever believes in him shall not perish but have eternal life(John
3:16).


_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. --0-572517493-1199939642=:95891-- --===============0496453648== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0496453648==--