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

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

bug#72019: [PATCH] Add project argument to project-kill-buffers


From: Dmitry Gutov
Subject: bug#72019: [PATCH] Add project argument to project-kill-buffers
Date: Tue, 9 Jul 2024 22:59:46 +0300
User-agent: Mozilla Thunderbird

Hi!

On 09/07/2024 21:31, Spencer Baugh wrote:
Tags: patch


Previously, project-kill-buffers always called (project-current t).  A
Lisp program could change what project project-kill-buffers operated
on by binding project-current-directory-override.  However, in some
edge cases (for example, if the project was deleted between looking it
up and calling project-kill-buffers) this might fail to detect a
project, and so (project-current t) would prompt the user.

To avoid this, accept the project to kill buffers for as an argument.

* lisp/progmodes/project.el (project-kill-buffers): Take project as an
optional argument.

LGTM.

Eli, is this okay for emacs-30?





reply via email to

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