From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Uberti via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54100: 29.0.50; Allow project-buffers to ignore some buffers Date: Wed, 23 Feb 2022 10:55:24 +0100 Message-ID: <456287c1-0a26-6d3f-2b9c-b20811c7d271@inventati.org> References: <0f990663-9cfb-233a-7cb0-9e1919ded3d1@inventati.org> <05d23926-3997-44d6-134a-a263c64530a4@inventati.org> <5ec9d7c3-6107-c888-7497-fa584e1257db@inventati.org> <2b6928a7-d4d3-e672-348f-56d7a136b879@inventati.org> Reply-To: Manuel Uberti Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22023"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 To: Dmitry Gutov , 54100@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 23 11:21:23 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMolu-0005WO-Vm for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Feb 2022 11:21:23 +0100 Original-Received: from localhost ([::1]:58456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMolt-0006Ow-Nm for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Feb 2022 05:21:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMoNR-000707-EX for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 04:56:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMoNO-0001Ku-0E for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 04:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nMoNN-0006Mq-Vr for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 04:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Uberti Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Feb 2022 09:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54100 X-GNU-PR-Package: emacs Original-Received: via spool by 54100-submit@debbugs.gnu.org id=B54100.164561012924432 (code B ref 54100); Wed, 23 Feb 2022 09:56:01 +0000 Original-Received: (at 54100) by debbugs.gnu.org; 23 Feb 2022 09:55:29 +0000 Original-Received: from localhost ([127.0.0.1]:43871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMoMq-0006M0-M5 for submit@debbugs.gnu.org; Wed, 23 Feb 2022 04:55:28 -0500 Original-Received: from confino.investici.org ([212.103.72.250]:34623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMoMo-0006Lq-F0 for 54100@debbugs.gnu.org; Wed, 23 Feb 2022 04:55:27 -0500 Original-Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4K3WcY0shxz111C; Wed, 23 Feb 2022 09:55:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1645610125; bh=bPs5J89boW3hXiTaOS5yL4YrQR8zqKqTS1DnVn5rX4s=; h=Date:Subject:From:To:References:In-Reply-To:From; b=I2/CHsramr8TTE+pmMWi5I1nDsriOk4RyGcxxjJjKM9dBmn6+frTz4CFrTNDI3xEK oaOhDscn4gSPCR/0OES/j5iysx/zGfjAWSBdOTRF64K1M0HqT6S0UzUaPwcPj2rzF2 q2hclQbKDa7TBRNiqP0Q2tNOaD+By0ctdycTiNGQ= Original-Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: manuel.uberti@inventati.org) by localhost (Postfix) with ESMTPSA id 4K3WcX6w3vz110t; Wed, 23 Feb 2022 09:55:24 +0000 (UTC) Content-Language: en-GB In-Reply-To: <2b6928a7-d4d3-e672-348f-56d7a136b879@inventati.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:227488 Archived-At: On 23/02/22 10:48, Manuel Uberti wrote: > I attached a patch. Let me know if I missed something or am approach the matter > in a wrong way. > > To try my code I used the following predicate (mu-ignored-buffers is in the > first message of this ticket): > > (defun mu-buffer-predicate (buffer) >   "Check if BUFFER is NOT a member of `mu-ignored-buffers'." >   (not (seq-contains-p mu-ignored-buffers >                        (buffer-name (cdr buffer)) >                        #'string-match-p))) > > And this setting: > > (setq-default project-switch-to-buffer-conditions '(mu-buffer-predicate)) > > Note that I didn't bump the package-version on > `project-switch-to-buffer-conditions' because I don't know if it is required. It also works with `mu-buffer-predicate' using this instead: (not (seq-contains-p mu-ignored-buffers (car buffer) #'string-match-p)) -- Manuel Uberti www.manueluberti.eu