]> git.eshelyaron.com Git - emacs.git/commit
Add project argument to project-kill-buffers
authorSpencer Baugh <sbaugh@janestreet.com>
Tue, 9 Jul 2024 18:30:27 +0000 (14:30 -0400)
committerEshel Yaron <me@eshelyaron.com>
Wed, 17 Jul 2024 21:48:07 +0000 (23:48 +0200)
commit055ff04a4c0f0e74cb9b3a2b713fca29cf7e4549
treeb536b8117dc4886ed59657cdcb32160dd801d78a
parent0474cf239242c97f83b5e725a35dd07113d1806b
Add project argument to project-kill-buffers

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 (bug#72019).

(cherry picked from commit 6b2f51633e0f508d393516d6624e1a4ddaca31d1)
lisp/progmodes/project.el