From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: delete buffer content from the point Date: Tue, 13 Jul 2021 14:08:48 +0200 Message-ID: <87czrm1ki5.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39420"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.12; emacs 27.2 Cc: help-gnu-emacs@gnu.org To: Luca Ferrari Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 13 14:12:39 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3HHC-000A0f-Jf for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Jul 2021 14:12:39 +0200 Original-Received: from localhost ([::1]:41730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3HHA-0006C7-Qr for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Jul 2021 08:12:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3HGG-0006BG-OG for help-gnu-emacs@gnu.org; Tue, 13 Jul 2021 08:11:40 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:48643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3HGE-0005Bj-JB for help-gnu-emacs@gnu.org; Tue, 13 Jul 2021 08:11:40 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 20DFC320090F; Tue, 13 Jul 2021 08:11:35 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 13 Jul 2021 08:11:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm3; bh=ZDgMWq75bleMVQYg4VgB3ekfS+ lc8MzdNeVs5rcKAGQ=; b=vYe5ljF4Vkqupd+Wa8j6WJZPfwVNrBqzWbvQ0UQogN M5zm2P2fRwwqYBGApwNRebzO6JWyR+Gs5udp1DJz/p4Bl/HJUaVA+l62mbDoyhQ/ y7s/Fpizhv/aUzOy2aTHW3dCOUuJODCuGittuWOe/MW21LxO3yRGONCSzf+V68yr PBQlaK8tGuAkDmDBfgrW+2faex7ZrQQzfWWKvRlIPzr0Jw4M5BJq6pB+QN/TD0us A5WWd9w67ZXm76ZelLAV7QAppCM/DcdXd2LTFVVm7BSJ585eyHb8nQsEu256h33d tUOVOvqXmw2bRd5bKj+mGeyHSysqzPgqoIKGzbjIR/1A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ZDgMWq 75bleMVQYg4VgB3ekfS+lc8MzdNeVs5rcKAGQ=; b=oqMwE08cCjMmbuHcBks46Z 1ek7ohit9fw3xAP2eB2x5RyJrczjF2fdl7BN4GH13MPvwzvLaYCOKQTojddsnmDz pwSnAmG1A7JI/pSsRhGzFhxjvpGgpr7I8dIQDNhvTI0QgmZsEJtkZ3x+VuJzzwKA p/v/PEZyaliWbmihPmbfV7pqk/2w5E/rHTqozEPXNzORBa7feLNzML7+uM5t2dAT 8U2wY8vpBz27NedhU9yeVZHkQXmdhkWWPRU42OZfmJny7JL+8Y7nX2KYlEsVjGiD j/DF5iggBtJ1r8ysiY55x5Nn/yitvirx8Ju0IcVjMuIwRBH41LTpgWLsyAiE7Utw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomheplfhoohhsthcu mfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmheqne cuggftrfgrthhtvghrnhepvdeihfetueevkeduteehudeihedvlefgieejhedvteefgeel leehhfejudeijeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Jul 2021 08:11:34 -0400 (EDT) In-reply-to: Received-SPF: pass client-ip=64.147.123.24; envelope-from=joostkremers@fastmail.fm; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131680 Archived-At: On Tue, Jul 13 2021, Luca Ferrari 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? > I do often duplicate files and adjusts the header part, then I do > 'C-k' until the part of the file I want to delete has disappeared, but > this has the drawback of being slow and inserting a wall of text into > the kill ring. C-SPC to set the mark, M-> to go to the end of the buffer and then DEL or BACKSPACE or C-d or C-w to delete the text. But for the use-case that you describe, it may be more practical to use `auto-insert-mode` or yasnippet. -- Joost Kremers Life has its moments