bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Zachary Kanfer
Subject: bug#56311: [PATCH] new function: delete-visited-file
Date: Thu, 30 Jun 2022 00:26:06 -0400

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.

Attachment: 0001-Add-new-function-delete-visited-file.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]