bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54100: 29.0.50; Allow project-buffers to ignore some buffers


From: Manuel Uberti
Subject: bug#54100: 29.0.50; Allow project-buffers to ignore some buffers
Date: Wed, 23 Feb 2022 16:00:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Attached a better patch.

I need a little help, though. The following setting does not filter as intended, meaning I see the dired buffer for the current project and I also see the buffers `mu-project-buffer-p' should ignore:

(defun mu-project-buffer-p (buffer)
  "Check if BUFFER is NOT a member of `mu-ignored-buffers'."
  (not (seq-contains-p mu-ignored-buffers (buffer-name buffer) 
#'string-match-p)))

(setq-default project-switch-to-buffer-conditions '(mu-project-buffer-p
(not (derived-mode . comint-mode))))

However, this correctly hides the buffers specified in mu-ignored-buffers:

(setq-default project-switch-to-buffer-conditions '(mu-project-buffer-p)

--
Manuel Uberti
www.manueluberti.eu

Attachment: 0001-Add-project-switch-to-buffer-conditions.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]