From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: How to delete all text from beginning of buffer to mark Date: Mon, 08 May 2017 18:35:18 +0300 Message-ID: <87tw4v9xah.fsf@iki.fi> References: <481f9e2a-475f-4fb6-bb6b-abba56a27c2f@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1494257760 15841 195.159.176.226 (8 May 2017 15:36:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 May 2017 15:36:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Angus Comber Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 08 17:35:54 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 1d7khW-0003yf-HN for geh-help-gnu-emacs@m.gmane.org; Mon, 08 May 2017 17:35:54 +0200 Original-Received: from localhost ([::1]:60074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7kha-0000Jv-G7 for geh-help-gnu-emacs@m.gmane.org; Mon, 08 May 2017 11:35:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7kh7-0000H8-8d for help-gnu-emacs@gnu.org; Mon, 08 May 2017 11:35:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7kh4-0007YI-LY for help-gnu-emacs@gnu.org; Mon, 08 May 2017 11:35:29 -0400 Original-Received: from mail.kapsi.fi ([217.30.184.167]:58323) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7kh4-0007Xg-A1 for help-gnu-emacs@gnu.org; Mon, 08 May 2017 11:35:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=3XvraKlIrNe2ToNQ1wF5mRcX3gceIBOnFKNPP5rLwPs=; b=Zsz8vwhiv615cMdu1J4ohPlpM7+KOjCiVVYkhruJdeeBCXo3x1OIL635RC7ZRnAp3cZQG9lG4Jaq53sJ2CXdU02T53WZkMk2+a61lynJl3ph7QLFt5L6Qs2+/d8KRcBQkT0be+64EeCnG43c2cGo3Mv8GG4QbcL+XUhJwiARosFqsRcxCCQjznD/C/E1hNXwjdyRnzGmcF4Qxr80TyPODZGQ5XDqwYvCXeM6N8a0s+nsMJCjIFGmyTMXoUgsId/niUWJMsaJyomuMlSlGaXFUNVU08/DkJRnT29RXUyLz0AqpGGB3Jh9KG5VNqcQmC1yTRN5Wh/WjwzgyrQx+8J1zw==; Original-Received: from dsl-roibrasgw1-54fb8f-106.dhcp.inet.fi ([84.251.143.106] helo=mithlond.arda) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1d7kgz-0001A8-CX; Mon, 08 May 2017 18:35:21 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.84_2) (envelope-from ) id 1d7kgy-0006zO-VT; Mon, 08 May 2017 18:35:20 +0300 In-Reply-To: <481f9e2a-475f-4fb6-bb6b-abba56a27c2f@googlegroups.com> (Angus Comber's message of "Mon, 8 May 2017 07:14:40 -0700 (PDT)") X-SA-Exim-Connect-IP: 84.251.143.106 X-SA-Exim-Mail-From: tlikonen@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.30.184.167 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:112965 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Angus Comber [2017-05-08 07:14:40-07] wrote: > What is the best way to basically delete all text before the cursor in > the buffer? M-< C-w The first command (beginning-of-buffer) sets the mark and moves the point to the beginning of buffer. The second command (kill-region) kills the text between the point and the mark. =2D-=20 /// Teemu Likonen - .-.. // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 /// --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJZEJA2AAoJEJM6NQQefq1R0PoH/iNQ18woVaxHc7gTsSitZu3B E892JOuweqr6sjB6ng554OftDFlA2rA0i+mKktsa8HVhQhpPW7GUSRL81DxLdiS/ pqju44uuxY3ew/cVOI6eh0FkzsLHm780nTiRdQzMvSVXdkbs2vyZTnoyeKZ56DSz 56of+lgqDmHc7cd+ruTKZ8mPrciPLv4DkAsRhkjpSw88qfu070aJbheoaxgkF9TK z4z4rMrfDD39vH8Lljx2VEDnlZyk4lLS0PYdEZuNALn3uBdHJCcwnH1zD/erUhS+ ILaClKGWxbWlSb0jG2uDl5hwDlmXsarEBY/kS6gkuEhfA+tDk9G0RzVM1HnWtvY= =d0eJ -----END PGP SIGNATURE----- --=-=-=--