From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#56311: [PATCH] new function: delete-visited-file Date: Wed, 29 Jun 2022 22:49:47 -0700 Message-ID: <87tu82bszo.fsf@athena.silentflame.com> References: <83k08y67ml.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20912"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.36 Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 56311@debbugs.gnu.org To: Eli Zaretskii , Zachary Kanfer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 30 07:51:13 2022 Return-path: Envelope-to: geb-bug-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 1o6n53-000576-BI for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 07:51:11 +0200 Original-Received: from localhost ([::1]:53270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6n51-0005Pb-Rp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 01:51:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6n3y-0005PC-QR for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 01:50:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6n3y-00084N-4R for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 01:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6n3y-0003jv-0P for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 01:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jun 2022 05:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 56311-submit@debbugs.gnu.org id=B56311.165656819614359 (code B ref 56311); Thu, 30 Jun 2022 05:50:01 +0000 Original-Received: (at 56311) by debbugs.gnu.org; 30 Jun 2022 05:49:56 +0000 Original-Received: from localhost ([127.0.0.1]:60797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6n3s-0003jX-26 for submit@debbugs.gnu.org; Thu, 30 Jun 2022 01:49:56 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:45423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6n3p-0003jH-ET for 56311@debbugs.gnu.org; Thu, 30 Jun 2022 01:49:54 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4E8635C0453; Thu, 30 Jun 2022 01:49:48 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 30 Jun 2022 01:49:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1656568188; x=1656654588; bh=Ls zQXSsZ/way8Kehh1G7DjPnkuKW+smS1KCvjAhg0Fg=; b=j6+QWa/RC5hMtN3jZz gt8UTTj5VAmY6NmFQVL9iE1P9pZ+L6f1+pnKj/mOpLzKYw3yTsHc6L4/L01g5ME+ v5QQNEV12vD0gvxFizdfgC2MCPpCF8Lq1COeFFz3tUEt9WiCmdGh0TozYXKhPmo0 ig2A4lAGXQQi4MFO3nHIYOs4v3MvqvUcINuNZxMlLfrut8XVuhSgSxGo/jz+6ObO mN8x8aRvOMd0Q1VH0zLfIiNL8ZwpVJF3sP7UYN6p97R6AUTMIErloWo96on8NL3s xaQtxqhAtgZp11oPNYAuMdBLZJ6Y83XEI6KJkLbWQ94sPSe3pjjwM6oVKkkQ79U1 Vfjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1656568188; x=1656654588; bh=LszQXSsZ/way8Kehh1G7DjPnkuKW +smS1KCvjAhg0Fg=; b=qb8qzUAVMTFVvCOHCe7Jghjt5X4tzK24VKNUR2glvioC iqGzXx73Aw9bPRnz5nV5jsONwPzHh6Dlm1tgryDLJCM3f0qRlkNmWRbVYZv7ySYk F9a7jQKL3hc1C2h7QhZKEFw0ZVm3dDf5+PMn+j9p3oWiGKDEO/eSNAAicdC58r8c dMP0WgvM9Qxpyu5roq5iO1/Hgkc7NzLDxV8pOztST2ON6VOo2c31DDgQ3khyTKln rT+U1tQB+AmOGCmfdb9DPWVs5PRJeKn0acCOvRb0x9RJkqkUpSVo8DZi1k73d057 FPuEWt+pRnpT4XkjQxskioKatdV8FTuL4ocqayJ3DA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudehtddguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufgjfhgffffkgggtsehttddttddtredtnecuhfhrohhmpefuvggr nhcuhghhihhtthhonhcuoehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg eqnecuggftrfgrthhtvghrnhepvdejtedtieetjeegjeekgffghedtkeeltdeftdetkefg ueekfedtudfhteeljeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgv X-ME-Proxy: Feedback-ID: i23c04076:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Jun 2022 01:49:47 -0400 (EDT) Original-Received: by athena.silentflame.com (Postfix, from userid 1000) id 2C56B1B5CB8; Thu, 30 Jun 2022 05:49:47 +0000 (UTC) In-Reply-To: <83k08y67ml.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235685 Archived-At: Hello, On Thu 30 Jun 2022 at 08:30am +03, Eli Zaretskii wrote: >> From: Zachary Kanfer >> Date: Thu, 30 Jun 2022 00:26:06 -0400 >> >> +** New command 'delete-visited-file'. >> +This command deletes the file visited by a buffer, then closes the >> +buffer. > > "Close the buffer" is not our terminology, you won't find it in our > documentation. We say "kill the buffer". > > I also think "delete-visited-file" is not the best name for the > command, since it doesn't tell all the truth about what it does. > > Apart of that, I have no opinion about this proposal, although each > time I see suggestions for features to kill unused buffers or see > people who are worried about such buffers, I raise a brow: in Emacs, > we generally don't care about that (because it does no harm to have > unused buffers), and if someone's usage patterns are such that they > tend to create _gobs_ of large buffers most of which quickly become > unused, there's midnight.el to take care of that. I don't care about the buffer being killed either, but there isn't currently a quick way to delete the file the selected buffer is visiting, you have to type/complete its name. It would be nice to have that, which I think this command provides. -- Sean Whitton