unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* scroll-down and beginning-of-buffer
@ 2005-01-07 17:05 Paul Raines
  2005-01-07 17:58 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Paul Raines @ 2005-01-07 17:05 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-02-11 19:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.11706.1105118323.27204.help-gnu-emacs@gnu.org>
2005-02-11 14:45 ` scroll-down and beginning-of-buffer John Russell
2005-02-11 19:20   ` August
2005-01-07 17:05 Paul Raines
2005-01-07 17:58 ` Eli Zaretskii
     [not found] ` <mailman.11719.1105122181.27204.help-gnu-emacs@gnu.org>
2005-01-07 22:01   ` Marco Gidde
2005-01-09 19:12 ` Paul Raines

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).