From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hector Newsgroups: gmane.emacs.help Subject: Re: How to delete all text from beginning of buffer to mark Date: Mon, 8 May 2017 17:43:46 +0200 Message-ID: <20170508154346.GA6239@workstation> References: <481f9e2a-475f-4fb6-bb6b-abba56a27c2f@googlegroups.com> <87zien77lh.fsf@fu-berlin.de> <20170508152134.GB25532@tuxteam.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1494258301 21757 195.159.176.226 (8 May 2017 15:45:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 May 2017 15:45:01 +0000 (UTC) User-Agent: Mutt/1.5.20 (2009-06-14) 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:44:57 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 1d7kqG-0005XJ-Gm for geh-help-gnu-emacs@m.gmane.org; Mon, 08 May 2017 17:44:56 +0200 Original-Received: from localhost ([::1]:60112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7kqM-00053r-49 for geh-help-gnu-emacs@m.gmane.org; Mon, 08 May 2017 11:45:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7kpF-0004gq-Kf for help-gnu-emacs@gnu.org; Mon, 08 May 2017 11:43:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7kpD-0001pg-0w for help-gnu-emacs@gnu.org; Mon, 08 May 2017 11:43:53 -0400 Original-Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:33134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7kpC-0001pK-Qe for help-gnu-emacs@gnu.org; Mon, 08 May 2017 11:43:50 -0400 Original-Received: by mail-wm0-x244.google.com with SMTP id y10so16345084wmh.0 for ; Mon, 08 May 2017 08:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xegg8iiva3EhO04YlYuWbkmo4AXFZb2fkYJyc7xHOZU=; b=ijqBrxSCC6jsP+JVH2wrIDlQ+JkWbMaiu1dyP5QmIapiZHIDQ3h9AEjCxvgu8AneLW r+kuw0D+rySylMxQn3zYsyvBRj2Ihu9oZtDsK3e8V5KyaAVSuDeiA0lxSmA5hgLJvvYN LglEsNGux9YzJ13rAxeNe6bygrWedMC7G7bq900ORkLoxGdXMbsDTBly80s2oO04f0Cn 9nElt4HGDSOkGMZ1CfIzF85h6V01XsnOzcdyAqfvzj9ub4Sky/ubG0mk/3weSuLarkQ0 UtTgQQwsKoeSe30mx5bqCbwN6vv8JXGdWLCBQ1vOlniLVrxp2PjMIWdd+YupMQx+2aEY BQww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=xegg8iiva3EhO04YlYuWbkmo4AXFZb2fkYJyc7xHOZU=; b=N8Q9sZNgCGQ3VW66WDMDrx/7gPSEpoClbWGUeQMklFXx00v32phoRph9FQAvJSF4zA wjSxXfedSaf2X1iXqz9DTZ+74hRvXYZXz9XM5GqyK9keG/n2terWOM6BCMQwvq9Jx1q1 YiRa6LLpDXSTxaaHWb4mU7+h3xP9+Q3Evby1MOCXfwp535WiyhwPzRqAidpsrkv6YpvD 1rl83rbt09iFrcJcsiLoKauO8P52eVZQQ38D5UbF4+kG/whi+bI3SZBnlH/2ZBGszSbB CLCOupuzTSJAJZpRpz9Po7F4oeey5/mK/vIMfi+bY3SVrzV9oM/a77V0YWSTBdQoZvc6 WUJw== X-Gm-Message-State: AN3rC/75n8Mf6VOPbHrzeFUkj15mqyKzNDsKhHn/Sijxs1V53v2+hYnV LJizE9nze8hHP2f6 X-Received: by 10.28.15.14 with SMTP id 14mr13850247wmp.106.1494258229202; Mon, 08 May 2017 08:43:49 -0700 (PDT) Original-Received: from workstation ([87.125.197.83]) by smtp.gmail.com with ESMTPSA id i3sm4512256wmf.30.2017.05.08.08.43.48 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 08 May 2017 08:43:48 -0700 (PDT) X-Google-Original-From: hector Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <20170508152134.GB25532@tuxteam.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 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:112966 Archived-At: 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 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.