GNU bug report logs - #56311
[PATCH] new function: delete-visited-file

Previous Next

Package: emacs;

Reported by: Zachary Kanfer <zkanfer <at> gmail.com>

Date: Thu, 30 Jun 2022 04:27:02 UTC

Severity: wishlist

Tags: moreinfo, patch, wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Zachary Kanfer <zkanfer <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] new function: delete-visited-file
Date: Thu, 30 Jun 2022 00:26:06 -0400
[Message part 1 (text/plain, inline)]
When I delete a file, I almost always want the buffer visiting it to go
away also. Why keep it around? So I have to do the following steps:

1. M-x delete-file
2. navigate to the file, select it.
3. C-x k <ret>

So I wrote a function to delete the file a buffer is visiting, and close
the buffer. Now I do everything in a single logical action:

1. M-x delete-visited-file
2. select the buffer.

Patch is attached.
[Message part 2 (text/html, inline)]
[0001-Add-new-function-delete-visited-file.patch (text/x-patch, attachment)]

This bug report was last modified 2 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.