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: Thu, 24 Feb 2022 08:18:05 +0100 Message-ID: References: Reply-To: Manuel Uberti Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------WCol1Ux55hvwFilQ3qtAmR6w" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17764"; 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: 54100@debbugs.gnu.org, Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 24 08:19:38 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 1nN8PZ-0004Ly-FA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Feb 2022 08:19:37 +0100 Original-Received: from localhost ([::1]:41584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nN8PX-0002EC-TK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Feb 2022 02:19:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nN8P4-0002C5-Hc for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 02:19:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nN8P0-00034U-By for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 02:19:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nN8P0-0006Yk-8v for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 02:19:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Manuel Uberti Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Feb 2022 07:19:02 +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.164568709525155 (code B ref 54100); Thu, 24 Feb 2022 07:19:02 +0000 Original-Received: (at 54100) by debbugs.gnu.org; 24 Feb 2022 07:18:15 +0000 Original-Received: from localhost ([127.0.0.1]:47383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nN8OF-0006Xe-60 for submit@debbugs.gnu.org; Thu, 24 Feb 2022 02:18:15 -0500 Original-Received: from confino.investici.org ([212.103.72.250]:24419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nN8OD-0006XV-DY for 54100@debbugs.gnu.org; Thu, 24 Feb 2022 02:18:14 -0500 Original-Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4K444g3BbMz113M; Thu, 24 Feb 2022 07:18:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1645687091; bh=GE64dIAukvpYi9LnLzwq5l6/fUUeIXJe5Uw2+vj7Me4=; h=Date:To:From:Subject:From; b=A3Np48IiZvJmp/97hMM/G1bAsSGyyuO9E0fPo9QwGU0A2bl5pdoL+C/zEgM3TjN3L qbt/8JbkAeIp7yRBEzydWlH1wCVyDAsj/6l8BonDYJhHmkAWlSW2Qfq3DHVn15kvIL VweOLDIeNXGxeQ0WT8H0ZkuTddJGSf3p/3vXHYQU= 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 4K444f07xBz113K; Thu, 24 Feb 2022 07:18:09 +0000 (UTC) Content-Language: en-GB 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:227562 Archived-At: This is a multi-part message in MIME format. --------------WCol1Ux55hvwFilQ3qtAmR6w Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Find attached yet a better approach to avoid repetition. Note that the above mention problem about multiple conditions remains, though. Help appreciated. :) -- Manuel Uberti www.manueluberti.eu --------------WCol1Ux55hvwFilQ3qtAmR6w Content-Type: text/x-patch; charset=UTF-8; name="0001-Add-project-switch-to-buffer-conditions.patch" Content-Disposition: attachment; filename="0001-Add-project-switch-to-buffer-conditions.patch" Content-Transfer-Encoding: base64 RnJvbSBhODE0MzAzNWVhNzEzNzZmMGU1M2NlNzg0OTkxZDljZDQ5MDcxOWVlIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNYW51ZWwgVWJlcnRpIDxtYW51ZWwudWJlcnRpQGlu dmVudGF0aS5vcmc+CkRhdGU6IFdlZCwgMjMgRmViIDIwMjIgMDk6MjU6MzIgKzAxMDAKU3Vi amVjdDogW1BBVENIXSBBZGQgcHJvamVjdC1zd2l0Y2gtdG8tYnVmZmVyLWNvbmRpdGl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WZmZXIgaW4gdGhlCitjdXJyZW50IHByb2plY3QsIGBwcm9qZWN0LXN3 aXRjaC10by1idWZmZXInIHN3aXRjaGVzIHRvIGl0LiIKKyAgOnR5cGUgJyhyZXBlYXQgKGNo b2ljZSByZWdleHAgZnVuY3Rpb24gc3ltYm9sCisgICAgICAgICAgICAgICAgICAgICAgICAg KGNvbnMgOnRhZyAiTWFqb3IgbW9kZSIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAoY29uc3QgbWFqb3ItbW9kZSkgc3ltYm9sKQorICAgICAgICAgICAgICAgICAgICAgICAg IChjb25zIDp0YWcgIkRlcml2ZWQgbW9kZSIKKyAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAoY29uc3QgZGVyaXZlZC1tb2RlKSBzeW1ib2wpCisgICAgICAgICAgICAgICAgICAg ICAgICAgKGNvbnMgOnRhZyAiTmVnYXRpb24iCisgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgKGNvbnN0IG5vdCkgc2V4cCkKKyAgICAgICAgICAgICAgICAgICAgICAgICAoY29u cyA6dGFnICJDb25qdW5jdGlvbiIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAo Y29uc3QgYW5kKSBzZXhwKQorICAgICAgICAgICAgICAgICAgICAgICAgIChjb25zIDp0YWcg IkRpc2p1bmN0aW9uIgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChjb25zdCBv cikgc2V4cCkpKQorICA6dmVyc2lvbiAiMjkuMSIKKyAgOmdyb3VwICdwcm9qZWN0CisgIDpw YWNrYWdlLXZlcnNpb24gJyhwcm9qZWN0IC4gIjAuOC4yIikpCisKIDs7OyMjI2F1dG9sb2Fk CiAoZGVmdW4gcHJvamVjdC1zd2l0Y2gtdG8tYnVmZmVyIChidWZmZXItb3ItbmFtZSkKICAg IkRpc3BsYXkgYnVmZmVyIEJVRkZFUi1PUi1OQU1FIGluIHRoZSBzZWxlY3RlZCB3aW5kb3cu CkBAIC0xMTM2LD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uIHRoZSBmb3JtCi1vZiBDT05ESVRJT05TLiIKLSAgKGNhdGNoICdraWxs CitTZWUgYHByb2plY3Qta2lsbC1idWZmZXItY29uZGl0aW9ucycgb3IKK2Bwcm9qZWN0LXN3 aXRjaC10by1idWZmZXItY29uZGl0aW9ucycgZm9yIG1vcmUgZGV0YWlscyBvbiB0aGUKK2Zv cm0gb2YgQ09ORElUSU9OUy4iCisgIChjYXRjaCAnbWF0Y2gKICAgICAoZG9saXN0IChjIGNv bmRpdGlvbnMpCiAgICAgICAod2hlbiAoY29uZAogICAgICAgICAgICAgICgoc3RyaW5ncCBj KQpAQCAtMTI1OCwxNSArMTMwMSwxNSBAQCBwcm9qZWN0LS1raWxsLWJ1ZmZlci1jaGVjawog ICAgICAgICAgICAgICAgKGJ1ZmZlci1sb2NhbC12YWx1ZSAnbWFqb3ItbW9kZSBidWYpCiAg ICAgICAgICAgICAgICAoY2RyIGMpKSkKICAgICAgICAgICAgICAoKGVxIChjYXItc2FmZSBj KSAnbm90KQotICAgICAgICAgICAgICAobm90IChwcm9qZWN0LS1raWxsLWJ1ZmZlci1jaGVj ayBidWYgKGNkciBjKSkpKQorICAgICAgICAgICAgICAobm90IChwcm9qZWN0LS1idWZmZXIt Y2hlY2sgYnVmIChjZHIgYykpKSkKICAgICAgICAgICAgICAoKGVxIChjYXItc2FmZSBjKSAn b3IpCi0gICAgICAgICAgICAgIChwcm9qZWN0LS1raWxsLWJ1ZmZlci1jaGVjayBidWYgKGNk ciBjKSkpCisgICAgICAgICAgICAgIChwcm9qZWN0LS1idWZmZXItY2hlY2sgYnVmIChjZHIg YykpKQogICAgICAgICAgICAgICgoZXEgKGNhci1zYWZlIGMpICdhbmQpCiAgICAgICAgICAg ICAgIChzZXEtZXZlcnktcAotICAgICAgICAgICAgICAgKGFwcGx5LXBhcnRpYWxseSAjJ3By b2plY3QtLWtpbGwtYnVmZmVyLWNoZWNrCisgICAgICAgICAgICAgICAoYXBwbHktcGFydGlh bGx5ICMncHJvamVjdC0tYnVmZmVyLWNoZWNrCiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIGJ1ZikKICAgICAgICAgICAgICAgIChtYXBjYXIgIydsaXN0IChjZHIgYykpKSkp Ci0gICAgICAgICh0aHJvdyAna2lsbCB0KSkpKSkKKyAgICAgICAgKHRocm93ICdtYXRjaCB0 KSkpKSkKIAogKGRlZnVuIHByb2plY3QtLWJ1ZmZlcnMtdG8ta2lsbCAocHIpCiAgICJSZXR1 cm4gbGlzdCBvZiBidWZmZXJzIGluIHByb2plY3QgUFIgdG8ga2lsbC4KQEAgLTEyNzQsNyAr MTMxNyw3IEBAIHByb2plY3QtLWJ1ZmZlcnMtdG8ta2lsbAogaW4gYHByb2plY3Qta2lsbC1i dWZmZXItY29uZGl0aW9ucycuIgogICAobGV0IChidWZzKQogICAgIChkb2xpc3QgKGJ1ZiAo cHJvamVjdC1idWZmZXJzIHByKSkKLSAgICAgICh3aGVuIChwcm9qZWN0LS1raWxsLWJ1ZmZl ci1jaGVjayBidWYgcHJvamVjdC1raWxsLWJ1ZmZlci1jb25kaXRpb25zKQorICAgICAgKHdo ZW4gKHByb2plY3QtLWJ1ZmZlci1jaGVjayBidWYgcHJvamVjdC1raWxsLWJ1ZmZlci1jb25k aXRpb25zKQogICAgICAgICAocHVzaCBidWYgYnVmcykpKQogICAgIGJ1ZnMpKQogCi0tIAoy LjI1LjEKCg== --------------WCol1Ux55hvwFilQ3qtAmR6w--