[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 44f23dac25: project-kill-buffer-conditions: Skip hidden ones
From: |
Dmitry Gutov |
Subject: |
master 44f23dac25: project-kill-buffer-conditions: Skip hidden ones |
Date: |
Thu, 3 Nov 2022 20:59:33 -0400 (EDT) |
branch: master
commit 44f23dac25f1a4f3194f760ddc733be4253f1ca0
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
project-kill-buffer-conditions: Skip hidden ones
* lisp/progmodes/project.el (project-kill-buffer-conditions):
Make exception for "hidden" buffers (bug#58839).
---
lisp/progmodes/project.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 0aa7955c65..9f386e7c92 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)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 44f23dac25: project-kill-buffer-conditions: Skip hidden ones,
Dmitry Gutov <=