1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

project-kill-buffer-conditions: Skip hidden ones

* lisp/progmodes/project.el (project-kill-buffer-conditions):
Make exception for "hidden" buffers (bug#58839).
This commit is contained in:
Dmitry Gutov 2022-11-04 02:58:58 +02:00
parent 8e7066babe
commit 44f23dac25

View file

@ -1222,8 +1222,10 @@ displayed."
(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)))