From: Teemu Likonen <tlikonen@iki.fi>
To: Angus Comber <anguscomber@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to delete all text from beginning of buffer to mark
Date: Mon, 08 May 2017 18:35:18 +0300 [thread overview]
Message-ID: <87tw4v9xah.fsf@iki.fi> (raw)
In-Reply-To: <481f9e2a-475f-4fb6-bb6b-abba56a27c2f@googlegroups.com> (Angus Comber's message of "Mon, 8 May 2017 07:14:40 -0700 (PDT)")
[-- Attachment #1: Type: text/plain, Size: 468 bytes --]
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.
--
/// Teemu Likonen - .-.. <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]
next prev parent reply other threads:[~2017-05-08 15:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-08 14:14 How to delete all text from beginning of buffer to mark Angus Comber
2017-05-08 14:20 ` Loris Bennett
2017-05-08 15:21 ` tomas
2017-05-08 15:43 ` hector
2017-05-08 15:35 ` Teemu Likonen [this message]
2017-05-08 15:50 ` Yuri Khan
2017-05-09 2:04 ` Emanuel Berg
2017-05-09 2:20 ` iterating the kill ring (was: Re: How to delete all text from beginning of buffer to mark) Emanuel Berg
2017-05-09 3:07 ` How to delete all text from beginning of buffer to mark Kaushal Modi
2017-05-09 6:53 ` Emanuel Berg
2017-05-09 11:39 ` Magnus Therning
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tw4v9xah.fsf@iki.fi \
--to=tlikonen@iki.fi \
--cc=anguscomber@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).