all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luca Ferrari <fluca1978@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: [External] : delete buffer content from the point
Date: Fri, 30 Jul 2021 12:49:14 +0200	[thread overview]
Message-ID: <CAKoxK+54VoSGOUQ5ZE=DH-hgWrD37chENbhQNyNy8LsK9QBGiA@mail.gmail.com> (raw)
In-Reply-To: <SJ0PR10MB54889A97B37A9AD9612B5381F3149@SJ0PR10MB5488.namprd10.prod.outlook.com>

On Tue, Jul 13, 2021 at 3:40 PM Drew Adams <drew.adams@oracle.com> wrote:
>
> > Is there a short and sweet way to kill the content of the current
> > buffer from the point to the end of the buffer itself?
>
> What everyone else has said - `delete-region'.
>
> But don't forget also `flush-lines', which can

Uhm..flush-lines is really interesting, I've bound as follows:

(bind-key (kbd "C-S-k") ( lambda()
                          (interactive)
                          (flush-lines ".*") ) )


Thanks!

Luca



  reply	other threads:[~2021-07-30 10:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13 11:32 delete buffer content from the point Luca Ferrari
2021-07-13 11:40 ` Tassilo Horn
2021-07-13 11:44 ` Philip Kaludercic
2021-07-13 11:51   ` Robert Pluim
2021-07-13 11:49 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-13 11:49 ` Óscar Fuentes
2021-07-13 11:50 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-13 12:08 ` Joost Kremers
2021-07-14  8:45   ` Luca Ferrari
2021-07-13 13:40 ` [External] : " Drew Adams
2021-07-30 10:49   ` Luca Ferrari [this message]
2021-07-30 15:59     ` Drew Adams

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKoxK+54VoSGOUQ5ZE=DH-hgWrD37chENbhQNyNy8LsK9QBGiA@mail.gmail.com' \
    --to=fluca1978@gmail.com \
    --cc=drew.adams@oracle.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.