From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Devlin Newsgroups: gmane.emacs.bugs Subject: bug#58933: 28.2; project-buffers should take an optional filter Date: Wed, 2 Nov 2022 10:17:29 -0400 Message-ID: References: <0EDC4306-3724-468F-8F0D-0470304A538D@toadstyle.org> <0540bf68-7419-f679-ef1c-fb4d8e978a4b@yandex.ru> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.51\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17526"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58933@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 02 15:18:18 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 1oqEZO-0004L2-3Z for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Nov 2022 15:18:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqEZB-0007rm-MV; Wed, 02 Nov 2022 10:18:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqEZ9-0007oC-Tc for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 10:18:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqEZ8-0008V8-Jt for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 10:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqEZ8-00067j-8U for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 10:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sean Devlin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Nov 2022 14:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58933 X-GNU-PR-Package: emacs Original-Received: via spool by 58933-submit@debbugs.gnu.org id=B58933.166739866923518 (code B ref 58933); Wed, 02 Nov 2022 14:18:02 +0000 Original-Received: (at 58933) by debbugs.gnu.org; 2 Nov 2022 14:17:49 +0000 Original-Received: from localhost ([127.0.0.1]:46910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqEYu-00067G-Uq for submit@debbugs.gnu.org; Wed, 02 Nov 2022 10:17:49 -0400 Original-Received: from mail-qv1-f44.google.com ([209.85.219.44]:43603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqEYs-00066z-NM for 58933@debbugs.gnu.org; Wed, 02 Nov 2022 10:17:47 -0400 Original-Received: by mail-qv1-f44.google.com with SMTP id c8so12521167qvn.10 for <58933@debbugs.gnu.org>; Wed, 02 Nov 2022 07:17:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20210112.gappssmtp.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BsMh2bdYBKItEOqW78cEDzK/vXKM054DHTJwcfWS4Co=; b=XUfi5aMOfb3/7vOzuQxn3+wvRqsWDaGNKLyjlm/Ti1NHTnT6DaLGTR/JnEMYXNhXmm 4NCca5FBJ2bDeY+DdK/ZikPnA4CLwhvoeY1ASHkZk3JW7BsCfGAH2x1RPyeCaCmlxm2L 0268YddkIy9ImJI3OKjOEDSmbP2y6/TSlQ95eozLAj5grusRCuU3OQ/xaml8GaNfymu6 TKUz2RTa5eSOqVqaPYHPqL5StmB+0iCaL4OB8bgB/4IcKmrXncrG6u0gqJHeYYWeWz0q M3y8uownb25FdZ42T0ENe0Nzc8Zc/8ZdhwWBanVqcC7ZFHNvBmubTG/6aj5ahFQmfwb3 2UhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BsMh2bdYBKItEOqW78cEDzK/vXKM054DHTJwcfWS4Co=; b=WFHigmBYHFK2ytTsvGo1LorqAikOvK3GxD9iZkIi4vnv93LlTsp7M3obJ7fgDNZSTm VSiWNDW97TVqcd0uwOD35P/CsbYESdTh8VL4bfQ2p0SnZ6KVZUKS5s3jgnDDDs/Ah8mG fAfKVal3FiiFPOxfhIoE4oswYpgDvoc60JQXKRJ7LGBBDpxRDv04cpT3KvskdUtYOuXM bEoX2PGEnRlGAnSNIWzCtW1tiPx/qqTXGLgBNTlKxe5x0SinapOCh5nKoWsOPZnfGUEN qR3b1D6HAuHtVGZOBIzMGGcTYE+qGkbVPImXuXR1s9rkr443V8NqsFZLXssB4cT/M2Zo qPRw== X-Gm-Message-State: ACrzQf1BE1ApCkop6UYSoYi2k9GyU17aIlB3cMG1MgFgVjpMXAfS6VNi AQBpzOknDVaEEA4gQs6jbODWyanPjAvRfOU8 X-Google-Smtp-Source: AMsMyM50NEZ88/MAJJ170+jOQtIPz5AdvThbhKo6a/h2fa2gIs+LRfxCwX9a36pRFkhgkdQDj1mJBw== X-Received: by 2002:a0c:e651:0:b0:4bb:a726:3392 with SMTP id c17-20020a0ce651000000b004bba7263392mr21735139qvn.0.1667398660120; Wed, 02 Nov 2022 07:17:40 -0700 (PDT) Original-Received: from smtpclient.apple (pool-173-56-106-162.nycmny.ftas.verizon.net. [173.56.106.162]) by smtp.gmail.com with ESMTPSA id u22-20020a05620a431600b006ceb933a9fesm8484540qko.81.2022.11.02.07.17.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Nov 2022 07:17:39 -0700 (PDT) In-Reply-To: <0540bf68-7419-f679-ef1c-fb4d8e978a4b@yandex.ru> X-Mailer: Apple Mail (2.3731.300.51) 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246871 Archived-At: Hi Dmitry, > On Nov 1, 2022, at 7:38 PM, Dmitry Gutov wrote: >=20 > Hi Sean, >=20 > On 01.11.2022 00:04, Sean Devlin wrote: >=20 >> Project.el provides a function project-buffers that returns a list of >> buffers associated with the given project. The list is unfiltered, >> meaning any program using it will have to do some work to pick out = the >> buffers of interest. It would be useful if the function had an = optional >> argument to do this work. >> Project.el already has a function project--buffer-check that = validates a >> buffer against a list of conditions. Maybe it should be wired into >> project-buffers to do the job of filtering? >=20 > There is also 'match-buffers' and 'buffer-match-p' in the core Emacs = starting with Emacs 29 (should also be available with the 'compat' = package). >=20 > What do you think about these alternatives? Thanks for the pointer=E2=80=94I wasn=E2=80=99t aware of these = functions. (I=E2=80=99m still on 28.2.) It looks like these do fit the bill. For example, it looks like I could = write: (match-buffers condition (project-buffers project)) I can=E2=80=99t see these functions in my local installation of compat = (056e3cc), but maybe definitions from Emacs 29 haven=E2=80=99t been = added yet? In any case, I=E2=80=99m happy to wait a little bit. >=20 > We could indeed add a new argument, but perhaps it won't made as much = of a difference, given those options. Given the functions you mentioned, I think it=E2=80=99s probably not a = high priority to solve the problem in project.el. Thanks!=