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: Sat, 26 Feb 2022 07:32:49 +0100 Message-ID: <3411b1c7-1ccb-61fd-eb59-ef6509c20266@inventati.org> References: <93b67902-a322-d0f1-e25a-97ff3ac70785@yandex.ru> <48d94136-bda9-091e-0370-788f3d706a9d@inventati.org> <89fb4c32-8fc8-98b8-d447-2076762fe6c6@yandex.ru> Reply-To: Manuel Uberti Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------A0u2XxKxZ8QX4I4s1VhRKsKX" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35687"; 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 Sat Feb 26 07:33:15 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 1nNqdm-00096U-OK for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 07:33:14 +0100 Original-Received: from localhost ([::1]:57030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNqdl-0004zQ-IS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 01:33:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNqda-0004rC-J4 for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 01:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60263) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNqda-0000eC-A8 for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 01:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNqda-0000iC-5W for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 01:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Uberti Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Feb 2022 06:33: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.16458571812733 (code B ref 54100); Sat, 26 Feb 2022 06:33:02 +0000 Original-Received: (at 54100) by debbugs.gnu.org; 26 Feb 2022 06:33:01 +0000 Original-Received: from localhost ([127.0.0.1]:54160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNqdZ-0000hx-6O for submit@debbugs.gnu.org; Sat, 26 Feb 2022 01:33:01 -0500 Original-Received: from devianza.investici.org ([198.167.222.108]:27689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNqdU-0000hl-GU for 54100@debbugs.gnu.org; Sat, 26 Feb 2022 01:32:59 -0500 Original-Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4K5GzV5vHdz6vKv; Sat, 26 Feb 2022 06:32:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1645857174; bh=BnChuq8ttZbE+6XFtWq6WcKcA86pSnjUz010FM8qHo4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=cuOMhz7eBpg9hOPJbhC0DIt58PM5c5hJP9bEBSWo6zcHwNpqsUMm7lu4sGJhVWZEB VVEpJ2Ya+xALRDmwBDd5CYzOh5gHs8Czj4cRcT6vsMob/uKer+SDC5tl9oGEjM2n3Y VrgEx4/rfSPrTrhAM32yaSNuwwdMKvIMq1ttYyj0= Original-Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: manuel.uberti@inventati.org) by localhost (Postfix) with ESMTPSA id 4K5GzV4PwKz6vJp; Sat, 26 Feb 2022 06:32:54 +0000 (UTC) Content-Language: en-GB In-Reply-To: <89fb4c32-8fc8-98b8-d447-2076762fe6c6@yandex.ru> 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:227667 Archived-At: This is a multi-part message in MIME format. --------------A0u2XxKxZ8QX4I4s1VhRKsKX Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 26/02/22 02:50, Dmitry Gutov wrote: > Looking at it more thoroughly, though, shouldn't we simply inline the check > added to project-switch-to-buffer to the function project--read-project-buffer? > > It's used by two other related commands (project-display-buffer and > project-display-buffer-other-frame), and users would probably expect them to > have the same filtering. > > project-ignore-buffer-conditions's docstring can be updated accordingly. I like the idea. I attached a new version of the patch. -- Manuel Uberti www.manueluberti.eu --------------A0u2XxKxZ8QX4I4s1VhRKsKX Content-Type: text/x-patch; charset=UTF-8; name="0001-Add-project-ignore-buffer-conditions.patch" Content-Disposition: attachment;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SkpKQogCisoZGVmY3VzdG9tIHByb2plY3QtaWdub3JlLWJ1ZmZlci1jb25kaXRp b25zIG5pbAorICAiTGlzdCBvZiBjb25kaXRpb25zIHRvIGZpbHRlciB0aGUgYnVmZmVycyB0 byBiZSBzd2l0Y2hlZCB0by4KK0lmIGFueSBvZiB0aGVzZSBjb25kaXRpb25zIGFyZSBzYXRp c2ZpZWQgZm9yIGEgYnVmZmVyIGluIHRoZQorY3VycmVudCBwcm9qZWN0LCBgcHJvamVjdC1z d2l0Y2gtdG8tYnVmZmVyJywKK2Bwcm9qZWN0LWRpc3BsYXktYnVmZmVyJyBhbmQgYHByb2pl Y3QtZGlzcGxheS1idWZmZXItb3RoZXItZnJhbWUnCitpZ25vcmUgaXQuCitTZWUgdGhlIGRv YyBzdHJpbmcgb2YgYHByb2plY3Qta2lsbC1idWZmZXItY29uZGl0aW9ucycgZm9yIHRoZQor Z2VuZXJhbCBmb3JtIG9mIGNvbmRpdGlvbnMuIgorICA6dHlwZSAnKHJlcGVhdCAoY2hvaWNl IHJlZ2V4cCBmdW5jdGlvbiBzeW1ib2wKKyAgICAgICAgICAgICAgICAgICAgICAgICAoY29u cyA6dGFnICJNYWpvciBtb2RlIgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChj b25zdCBtYWpvci1tb2RlKSBzeW1ib2wpCisgICAgICAgICAgICAgICAgICAgICAgICAgKGNv bnMgOnRhZyAiRGVyaXZlZCBtb2RlIgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IChjb25zdCBkZXJpdmVkLW1vZGUpIHN5bWJvbCkKKyAgICAgICAgICAgICAgICAgICAgICAg ICAoY29ucyA6dGFnICJOZWdhdGlvbiIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAoY29uc3Qgbm90KSBzZXhwKQorICAgICAgICAgICAgICAgICAgICAgICAgIChjb25zIDp0 YWcgIkNvbmp1bmN0aW9uIgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChjb25z dCBhbmQpIHNleHApCisgICAgICAgICAgICAgICAgICAgICAgICAgKGNvbnMgOnRhZyAiRGlz anVuY3Rpb24iCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNvbnN0IG9yKSBz ZXhwKSkpCisgIDp2ZXJzaW9uICIyOS4xIgorICA6Z3JvdXAgJ3Byb2plY3QKKyAgOnBhY2th Z2UtdmVyc2lvbiAnKHByb2plY3QgLiAiMC44LjIiKSkKKwogKGRlZnVuIHByb2plY3QtLXJl YWQtcHJvamVjdC1idWZmZXIgKCkKICAgKGxldCogKChwciAocHJvamVjdC1jdXJyZW50IHQp KQogICAgICAgICAgKGN1cnJlbnQtYnVmZmVyIChjdXJyZW50LWJ1ZmZlcikpCkBAIC0xMTIx LDcgKzExNDQsMTAgQEAgcHJvamVjdC0tcmVhZC1wcm9qZWN0LWJ1ZmZlcgogICAgICAgICAg KHByZWRpY2F0ZQogICAgICAgICAgIChsYW1iZGEgKGJ1ZmZlcikKICAgICAgICAgICAgIDs7 IEJVRkZFUiBpcyBhbiBlbnRyeSAoQlVGLU5BTUUgLiBCVUYtT0JKKSBvZiBWYnVmZmVyX2Fs aXN0LgotICAgICAgICAgICAgKG1lbXEgKGNkciBidWZmZXIpIGJ1ZmZlcnMpKSkpCisgICAg ICAgICAgICAoYW5kIChtZW1xIChjZHIgYnVmZmVyKSBidWZmZXJzKQorICAgICAgICAgICAg ICAgICAobm90CisgICAgICAgICAgICAgICAgICAocHJvamVjdC0tYnVmZmVyLWNoZWNrCisg ICAgICAgICAgICAgICAgICAgKGNkciBidWZmZXIpIHByb2plY3QtaWdub3JlLWJ1ZmZlci1j b25kaXRpb25zKSkpKSkpCiAgICAgKHJlYWQtYnVmZmVyCiAgICAgICJTd2l0Y2ggdG8gYnVm ZmVyOiAiCiAgICAgICh3aGVuIChmdW5jYWxsIHByZWRpY2F0ZSAoY29ucyBvdGhlci1uYW1l IG90aGVyLWJ1ZmZlcikpCkBAIC0xMjM5LDExICsxMjY1LDEyIE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ZiAoY2RyIGMpKSkpCiAgICAgICAgICAgICAgKChlcSAoY2FyLXNhZmUgYykgJ29y KQotICAgICAgICAgICAgICAocHJvamVjdC0ta2lsbC1idWZmZXItY2hlY2sgYnVmIChjZHIg YykpKQorICAgICAgICAgICAgICAocHJvamVjdC0tYnVmZmVyLWNoZWNrIGJ1ZiAoY2RyIGMp KSkKICAgICAgICAgICAgICAoKGVxIChjYXItc2FmZSBjKSAnYW5kKQogICAgICAgICAgICAg ICAoc2VxLWV2ZXJ5LXAKLSAgICAgICAgICAgICAgIChhcHBseS1wYXJ0aWFsbHkgIydwcm9q ZWN0LS1raWxsLWJ1ZmZlci1jaGVjaworICAgICAgICAgICAgICAgKGFwcGx5LXBhcnRpYWxs eSAjJ3Byb2plY3QtLWJ1ZmZlci1jaGVjawogICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICBidWYpCiAgICAgICAgICAgICAgICAobWFwY2FyICMnbGlzdCAoY2RyIGMpKSkpKQot ICAgICAgICAodGhyb3cgJ2tpbGwgdCkpKSkpCisgICAgICAgICh0aHJvdyAnbWF0Y2ggdCkp KSkpCiAKIChkZWZ1biBwcm9qZWN0LS1idWZmZXJzLXRvLWtpbGwgKHByKQogICAiUmV0dXJu IGxpc3Qgb2YgYnVmZmVycyBpbiBwcm9qZWN0IFBSIHRvIGtpbGwuCkBAIC0xMjc0LDcgKzEz MDEsNyBAQCBwcm9qZWN0LS1idWZmZXJzLXRvLWtpbGwKIGluIGBwcm9qZWN0LWtpbGwtYnVm ZmVyLWNvbmRpdGlvbnMnLiIKICAgKGxldCAoYnVmcykKICAgICAoZG9saXN0IChidWYgKHBy b2plY3QtYnVmZmVycyBwcikpCi0gICAgICAod2hlbiAocHJvamVjdC0ta2lsbC1idWZmZXIt Y2hlY2sgYnVmIHByb2plY3Qta2lsbC1idWZmZXItY29uZGl0aW9ucykKKyAgICAgICh3aGVu IChwcm9qZWN0LS1idWZmZXItY2hlY2sgYnVmIHByb2plY3Qta2lsbC1idWZmZXItY29uZGl0 aW9ucykKICAgICAgICAgKHB1c2ggYnVmIGJ1ZnMpKSkKICAgICBidWZzKSkKIAotLSAKMi4y NS4xCgo= --------------A0u2XxKxZ8QX4I4s1VhRKsKX--