From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Luca Ferrari Newsgroups: gmane.emacs.help Subject: Re: [External] : delete buffer content from the point Date: Fri, 30 Jul 2021 12:49:14 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10221"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 30 12:50:19 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 1m9Q5r-0002RW-MU for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Jul 2021 12:50:19 +0200 Original-Received: from localhost ([::1]:52634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9Q5n-0003TQ-V4 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Jul 2021 06:50:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9Q5T-0003TG-0t for help-gnu-emacs@gnu.org; Fri, 30 Jul 2021 06:49:55 -0400 Original-Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:46728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9Q5R-0003ni-EI for help-gnu-emacs@gnu.org; Fri, 30 Jul 2021 06:49:54 -0400 Original-Received: by mail-oi1-x232.google.com with SMTP id o185so12548004oih.13 for ; Fri, 30 Jul 2021 03:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/TQrY75prVL1XJVxZFckifnSQR2ll9LbLGC9W9Bku1c=; b=d3E6csncP46BdqNUH07yGDYNSR9ZCmyIt6MWrLPBDsVH2trFKBHmC+JOUDQ7b2CORg 5lBw96EL4GYyop9L0XJJ1QIQGvb72XVayfl8VK8RoFUc7xUMjHwogBIxIDrhrERjnmyS MuHaBolrDBCWAzPigmuRAXvWI9dSxfKRPU0dPh7aiVbjLO7O4BNysHoG8/7bs1l1zdEx 4zQvqGKmkjD6CZU4zKLvUlt3iyqxGsxM7GOX+MlJ4DNVmTNigRyUmNXRJuD69BNdDkno W07bNmoolO3RS30Vswhfzo77HYOWbhKzBSN2Oedv2WbWEJukcXjBT9L0eWDOrTeeQ/oQ bV4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/TQrY75prVL1XJVxZFckifnSQR2ll9LbLGC9W9Bku1c=; b=LJmYhyM62AINqhhAHqZLoQEp/ufereIXJz4SSgnx2d4kZsh2GoLtlu7htkd464L8fs 5agtDIYb/8Ttnya20JzAuaYsawUubnh+xtE0pmLJb5A1fjFhFLAykQcyY0Ccy/OriTNs 1/VQ4zWHkV9TZi3BBir5YvumKxchSJLIfUIsfJH1L61IxmNGRTBpY19bo2Xk9gr3DoV9 WDLTJ1+xxRJXrkI7dTHni8KFSnyi4IKUmApinxsI11IswAzRj5llAZOGpvRS/FoWFrCN d4PQy07/9BXCuXH1pGndvVqp5DVsNSGbGdXbdsEvx7eNW/Yx1Vf96a/gvUbu0sin26RT 2NGA== X-Gm-Message-State: AOAM532p9WQIYRmMxOiCqYTyReQINSyiiu6fTf751A3mTRa3PjrbrMed zx63zdL6hZ4pj9OneOYJfN1uoMR+/XrKyc3aDgU= X-Google-Smtp-Source: ABdhPJyygoe49jgnfXrYj1lubJ3TuBDy5upA/w74zg9QOq4SVp78mpOesK2xd/acThaj3oJO3BGOnOCCqRWLjwSK9MI= X-Received: by 2002:aca:c402:: with SMTP id u2mr1306673oif.121.1627642191416; Fri, 30 Jul 2021 03:49:51 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::232; envelope-from=fluca1978@gmail.com; helo=mail-oi1-x232.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:132189 Archived-At: On Tue, Jul 13, 2021 at 3:40 PM Drew Adams 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