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:
parent
8e7066babe
commit
44f23dac25
1 changed files with 4 additions and 2 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue