From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: delete buffer content from the point Date: Tue, 13 Jul 2021 13:49:33 +0200 Message-ID: <878s2afn76.fsf@telefonica.net> 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="7440"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs To: Luca Ferrari Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 13 13:50:09 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 1m3GvQ-0001gP-Rw for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Jul 2021 13:50:08 +0200 Original-Received: from localhost ([::1]:56744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3GvP-0003b1-Sm for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Jul 2021 07:50:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3Gv1-0003WE-5U for help-gnu-emacs@gnu.org; Tue, 13 Jul 2021 07:49:43 -0400 Original-Received: from relayout03.e.movistar.es ([86.109.101.203]:30987 helo=relayout03-redir.e.movistar.es) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3Guy-0006Dw-Hx for help-gnu-emacs@gnu.org; Tue, 13 Jul 2021 07:49:42 -0400 Original-Received: from sky (14.red-79-145-70.dynamicip.rima-tde.net [79.145.70.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout03.e.movistar.es (Postfix) with ESMTPSA id 4GPJp60Q9tzMlWw; Tue, 13 Jul 2021 13:49:33 +0200 (CEST) In-Reply-To: (Luca Ferrari's message of "Tue, 13 Jul 2021 13:32:09 +0200") X-TnetOut-Country: IP: 79.145.70.14 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout03 X-TnetOut-MsgID: 4GPJp60Q9tzMlWw.A8A06 X-TnetOut-SpamCheck: no es spam, clean X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1626781774.45718@9JC2Xr5TOhSgfMmCvUdTWA Received-SPF: softfail client-ip=86.109.101.203; envelope-from=ofv@wanadoo.es; helo=relayout03-redir.e.movistar.es X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no 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:131677 Archived-At: Luca Ferrari writes: > 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. Set the mark with C-SPC, move to the end of buffer with C-, M-x delete-region.