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. In GNU Emacs 29.2.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.15.12, Xaw scroll bars) of 2024-06-01 built on igm-qws-u22796a Repository revision: fcef787a846f0c51f7443dfab6af6e18b476b166 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Rocky Linux 8.10 (Green Obsidian) Configured using: 'configure --with-x-toolkit=lucid --without-gpm --without-gconf --without-selinux --without-imagemagick --with-modules --with-gif=no --with-cairo --with-rsvg --without-compress-install --with-native-compilation=aot --with-tree-sitter PKG_CONFIG_PATH=/usr/local/home/garnish/libtree-sitter/0.22.6-1/lib/pkgconfig/'