help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to delete all text from beginning of buffer to mark


From: hector
Subject: Re: How to delete all text from beginning of buffer to mark
Date: Mon, 8 May 2017 17:43:46 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Mon, May 08, 2017 at 05:21:35PM +0200, tomas@tuxteam.de wrote:
> On Mon, May 08, 2017 at 04:20:58PM +0200, Loris Bennett wrote:
> > Angus Comber <anguscomber@gmail.com> writes:
> > 
> > > I am in a large file of text and my cursor is at the start of the text
> > > I want.  I want to delete all the text before the cursor.  I know I
> > > can set the mark using C-sp but how do I then select to the beginning
> > > of the file?
> 
> Just by moving point to the beginning of the buffer (e.g. by C-M-a) The
> selection is between point and mark (which you've set by C-sp)

Just for the sake of completeness,
The region always extends between point and the mark, no matter which
one comes earlier in the text.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]