From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Raines Newsgroups: gmane.emacs.help Subject: scroll-down and beginning-of-buffer Date: Fri, 7 Jan 2005 12:05:31 -0500 (EST) Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1105117746 32536 80.91.229.6 (7 Jan 2005 17:09:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2005 17:09:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 07 18:08:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CmxbV-0005n1-00 for ; Fri, 07 Jan 2005 18:08:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cmxmq-0005Tf-RB for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jan 2005 12:20:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cmxl0-0003mZ-88 for help-gnu-emacs@gnu.org; Fri, 07 Jan 2005 12:18:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cmxkw-0003ka-Sv for help-gnu-emacs@gnu.org; Fri, 07 Jan 2005 12:18:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cmxkw-0003kD-O1 for help-gnu-emacs@gnu.org; Fri, 07 Jan 2005 12:18:34 -0500 Original-Received: from [132.183.202.158] (helo=surfer.nmr.mgh.harvard.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CmxYd-0008Uz-0E for help-gnu-emacs@gnu.org; Fri, 07 Jan 2005 12:05:51 -0500 Original-Received: from mail.nmr.mgh.harvard.edu (mail.nmr.mgh.harvard.edu [132.183.202.9]) by surfer.nmr.mgh.harvard.edu (8.12.8/8.12.8) with ESMTP id j07H5maA025674 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Fri, 7 Jan 2005 12:05:50 -0500 Original-Received: from gate.nmr.mgh.harvard.edu (gate.nmr.mgh.harvard.edu [132.183.203.69]) by mail.nmr.mgh.harvard.edu (8.12.8/8.12.8) with ESMTP id j07H5UVv025710 for ; Fri, 7 Jan 2005 12:05:30 -0500 Original-To: help-gnu-emacs@gnu.org X-NMR-MGH-MailScanner-Information: Please contact the ISP for more information X-NMR-MGH-MailScanner: Found to be clean X-NMR-MGH-MailScanner-SpamCheck: not spam, SpamAssassin (score=-100, required 5, USER_IN_WHITELIST -100.00) X-MailScanner-From: raines@nmr.mgh.harvard.edu 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: main.gmane.org gmane.emacs.help:23192 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23192 I am trying to ge the Page Up and Page Down keys to behave like they do in almost every other editor out there. Specifically, when hitting Page Up repeatedly, you eventually end up with the curson on the very first line of the file. Instead, emails stops at some random line below and refuses to go any further and just displays "beginning of buffer" in the mini-buffer. I have tried definining the following function: (defun my-scroll-down (arg) "Same as scroll-down except really goes to beginning of file" (interactive "P") (if (not (call-interactively 'scroll-down)) (call-interactively 'beginning-of-buffer))) Which works but has the horrible side effect of reseting the mark each time it is used to the region scrolled. How do I stop it from doing that? Or is the better way to get what I want? -- --------------------------------------------------------------- Paul Raines email: raines@nmr.mgh.harvard.edu MGH/MIT/HMS Athinoula A. Martinos Center for Biomedical Imaging 149 (2301) 13th Street Charlestown, MA 02129 USA