🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #188826

Re: End of file detection

#188826
From: Fred H. Bremmer
Date: Fri, 14 Jun 1991 18:07
16 lines
1216 bytes
lowrie@shear.engin.umich.edu (Robert Byron Lowrie) writes:

>Is there a way to keep the cursor from moving past the
>end of a file?  In other words, once "End of Buffer" is
>reached, don't allow the cursor to move down (a la C-n)
>anymore.

If you are trying to get a macro to stop when it hits the end of the
file, try using C-e C-f instead of C-n.  This should ring the bell and
cause your macro to stop at the end of the buffer.

--
 Fred Bremmer    |  Internet: fredb@calvin.edu
 Calvin College  |  UUCP:     ..!uunet!calvin.edu!fredb
 Grand Rapids,   | ---------------------------------------------------------
 MI USA   49546  |     Anata wa Nihongo o hanashimasu ka?
Technical Details
Message-ID: <fredb.676922869@uther>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!caen!uther!fredb
References: <B=C-A-+@engin.umich.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,aede17fcc792d7dd
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-06-15 05:15:49 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!caen!uther!fredb
From: fredb@uther.calvin.edu (Fred H. Bremmer)
Newsgroups: gnu.emacs.help
Subject: Re: End of file detection
Message-ID: <fredb.676922869@uther>
Date: 14 Jun 91 18:07:49 GMT
References: <B=C-A-+@engin.umich.edu>
Organization: The University of Michigan, Ann Arbor
Lines: 16