From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Angus Comber Newsgroups: gmane.emacs.help Subject: How to delete all text from beginning of buffer to mark Date: Mon, 8 May 2017 07:14:40 -0700 (PDT) Message-ID: <481f9e2a-475f-4fb6-bb6b-abba56a27c2f@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1494257552 912 195.159.176.226 (8 May 2017 15:32:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 May 2017 15:32:32 +0000 (UTC) Injection-Date: Mon, 08 May 2017 14:14:40 +0000 User-Agent: G2/1.0 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:32:29 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 1d7keC-00009N-RR for geh-help-gnu-emacs@m.gmane.org; Mon, 08 May 2017 17:32:28 +0200 Original-Received: from localhost ([::1]:60053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7keI-00066R-FX for geh-help-gnu-emacs@m.gmane.org; Mon, 08 May 2017 11:32:34 -0400 X-Received: by 10.107.17.39 with SMTP id z39mr13352355ioi.36.1494252880815; Mon, 08 May 2017 07:14:40 -0700 (PDT) X-Received: by 10.157.14.91 with SMTP id n27mr1262516otd.8.1494252880705; Mon, 08 May 2017 07:14:40 -0700 (PDT) Original-Path: usenet.stanford.edu!c26no1455239itd.0!news-out.google.com!v18ni1967ita.0!nntp.google.com!c26no1450692itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=80.194.194.72; posting-account=SYwseQoAAABBYGT-AD1YXrcTXHxLkDZy Original-NNTP-Posting-Host: 80.194.194.72 Original-Xref: usenet.stanford.edu gnu.emacs.help:219109 X-Mailman-Approved-At: Mon, 08 May 2017 11:31:59 -0400 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:112964 Archived-At: 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? What is the best way to basically delete all text before the cursor in the buffer?