]> git.eshelyaron.com Git - emacs.git/commitdiff
project-kill-buffer-conditions: Skip hidden ones
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 4 Nov 2022 00:58:58 +0000 (02:58 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 4 Nov 2022 00:59:12 +0000 (02:59 +0200)
* lisp/progmodes/project.el (project-kill-buffer-conditions):
Make exception for "hidden" buffers (bug#58839).

lisp/progmodes/project.el

index 0aa7955c65eda83c92dfeb15dc459b0727bde307..9f386e7c9254d741f442276f58194b4aedc8c3e6 100644 (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)))