* lisp/progmodes/project.el (project-kill-buffer-conditions):
Make exception for "hidden" buffers (bug#58839).
(defcustom project-kill-buffer-conditions
'(buffer-file-name ; All file-visiting buffers are included.
- ;; Most of the temp buffers in the background:
- (major-mode . fundamental-mode)
+ ;; Most of temp and logging buffers (aside from hidden ones):
+ (and
+ (major-mode . fundamental-mode)
+ (not "\\` "))
;; non-text buffer such as xref, occur, vc, log, ...
(and (derived-mode . special-mode)
(not (major-mode . help-mode)))