From: Dmitry Gutov Date: Fri, 4 Nov 2022 00:58:58 +0000 (+0200) Subject: project-kill-buffer-conditions: Skip hidden ones X-Git-Tag: emacs-29.0.90~1616^2~327 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=44f23dac25f1a4f3194f760ddc733be4253f1ca0;p=emacs.git project-kill-buffer-conditions: Skip hidden ones * lisp/progmodes/project.el (project-kill-buffer-conditions): Make exception for "hidden" buffers (bug#58839). --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 0aa7955c65e..9f386e7c925 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -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)))