From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: How to delete all text from beginning of buffer to mark Date: Mon, 8 May 2017 17:21:35 +0200 Message-ID: <20170508152134.GB25532@tuxteam.de> References: <481f9e2a-475f-4fb6-bb6b-abba56a27c2f@googlegroups.com> <87zien77lh.fsf@fu-berlin.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1494256975 23622 195.159.176.226 (8 May 2017 15:22:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 May 2017 15:22:55 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 08 17:22:51 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7kUr-000621-8N for geh-help-gnu-emacs@m.gmane.org; Mon, 08 May 2017 17:22:49 +0200 Original-Received: from localhost ([::1]:60011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7kUw-0001ki-Od for geh-help-gnu-emacs@m.gmane.org; Mon, 08 May 2017 11:22:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7kTw-00016D-TC for help-gnu-emacs@gnu.org; Mon, 08 May 2017 11:21:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7kTt-0002bQ-KG for help-gnu-emacs@gnu.org; Mon, 08 May 2017 11:21:52 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:42685 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7kTt-0002ZI-EB for help-gnu-emacs@gnu.org; Mon, 08 May 2017 11:21:49 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1d7kTf-0006hk-12 for help-gnu-emacs@gnu.org; Mon, 08 May 2017 17:21:35 +0200 In-Reply-To: <87zien77lh.fsf@fu-berlin.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112963 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, May 08, 2017 at 04:20:58PM +0200, Loris Bennett wrote: > Angus Comber 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) cheers - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlkQjP4ACgkQBcgs9XrR2kbdUwCeMZnxiX5FYbYNdjl7h0TcL0Gy sw0An21ulYbCQN1Sk7ytlk73oYurV41O =deFO -----END PGP SIGNATURE-----