From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#59722: 30.0.50; project-find-regexp searches project-ignored files Date: Thu, 1 Dec 2022 01:30:03 +0200 Message-ID: <1f6b991a-d67e-5e38-b77f-038e97218e4e@yandex.ru> References: <9de53f42-8f76-3770-b059-d78a5252d31a@yandex.ru> 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="3662"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 To: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= , 59722@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 01 00:31:46 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 1p0WYL-0000h7-Bu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Dec 2022 00:31:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0WXx-0000nt-Fv; Wed, 30 Nov 2022 18:31:22 -0500 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 1p0WXh-0000mV-7Z for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 18:31:13 -0500 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 1p0WXg-0000HM-Lm for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 18:31:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0WXe-0005MN-HJ for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 18:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2022 23:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59722 X-GNU-PR-Package: emacs Original-Received: via spool by 59722-submit@debbugs.gnu.org id=B59722.166985101420588 (code B ref 59722); Wed, 30 Nov 2022 23:31:02 +0000 Original-Received: (at 59722) by debbugs.gnu.org; 30 Nov 2022 23:30:14 +0000 Original-Received: from localhost ([127.0.0.1]:35757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0WWs-0005Ly-3t for submit@debbugs.gnu.org; Wed, 30 Nov 2022 18:30:14 -0500 Original-Received: from mail-wm1-f48.google.com ([209.85.128.48]:46828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0WWp-0005Kj-AP for 59722@debbugs.gnu.org; Wed, 30 Nov 2022 18:30:12 -0500 Original-Received: by mail-wm1-f48.google.com with SMTP id m7-20020a05600c090700b003cf8a105d9eso186331wmp.5 for <59722@debbugs.gnu.org>; Wed, 30 Nov 2022 15:30:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=aFuS4ZP/zy9bN7ImxKWXD22FIHEjATRA8DGiCNNyJPc=; b=IoXWHCj0HVlhFfI8aYCjMpI76D/aXG6/mnrOF1hBXoV31A3PILpO7oYIwXSQL0sNWd O4gQenlfvtBH59QfATF+P1jIGSBCJoY/jHoxW8wwat/J+Yg3pvDd2SQ+3W5LFxRiZOkk ggjXlnvWO7+nzG2mVQL6oSjywk0MArokmH/MHbAmaLYzb/VqvWCJnktyL78untXQFEiR kaEpwfrt192mjKmL5xOr6o5EQDHRrSpFXNezFpBURktDMHlXId1Op9sJ8kDeSALmHiUr 9KCmNxj+Eom7vPW2c0v4CNYjI3voZK77QO2h3+6ZVKlt+YmrhulZiVeq4z6E7mdynMgu BeEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aFuS4ZP/zy9bN7ImxKWXD22FIHEjATRA8DGiCNNyJPc=; b=uuz8NYfT4sAwvxvFWMCtaNKVinR/oW7uPNdsMrWUihzp9YQawUB22INXRrxn1nkkxm 9Und/RGMCOojHRFgDAbN3gBa36PeETHdrQregHScpZw1mwmICajFbfDgehvbsnfipvMh 8Bc31szBThdrUDnIf/lg9C7wsAGENtzaKDE7FGMvbLhjF4bd9QGiw2N8owBXLo7h5Wia WTVg4q7ydKre7tgvrgVbMqjD0nAt3/PElzcGRKghg/jp4ezqhNuXpMis2X9bLTf1cUw0 7n14C9HM5lD1Y2XJNuns0OWWsjEBoqWKnzveA9Tyg4TjZ6scmVHzrUt1V6PRCp1paTKq T84Q== X-Gm-Message-State: ANoB5pmq9aOGN+lK+cRUg7D/wukolLj9Csku5/4LKPp2HUTDeu2x09Kh SqBPMqvyP6JhxpACIPjXQjM= X-Google-Smtp-Source: AA0mqf6Olg1VqYVQ2j0vlAWJZYkW9I09TkPbIlB9mQRiAHZPOnf5uFfpQtlfIB7fpCdjhsjIU44jdw== X-Received: by 2002:a1c:6a13:0:b0:3cf:7801:c780 with SMTP id f19-20020a1c6a13000000b003cf7801c780mr47142823wmc.29.1669851005455; Wed, 30 Nov 2022 15:30:05 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id j33-20020a05600c1c2100b003b4ff30e566sm7247216wms.3.2022.11.30.15.30.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Nov 2022 15:30:04 -0800 (PST) Content-Language: en-US In-Reply-To: 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249582 Archived-At: On 01/12/2022 01:20, Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: >> What backend are you using? If it's (most likely) project-vc, then the >> variable you must be looking for is 'project-vc-ignores'. > > I do use the Git (VC) backend. Correction: > > When I set the dir locals file to > > ((nil . ((project-vc-ignores . ("apps/**/*.scm"))))) > > I face the problem where C-x p f ignores the files in the "apps" > directory, as expected, but C-x p g does not. Okay. I wonder how that could be possible: project-find-regexp (that if what you have 'C-x p g' bound to, right?) does the search across the files returned by 'project-files'. So there is just one place that interprets the ignores' list and produces the list of files, and both project-find-file and project-find-regexp consume the result. Can you step through 'project-find-regexp' with edebug? Does the return value of 'project-files' (saved to 'files') contain the extra entries? Or are you calling 'project-find-regexp' with a prefix, which switches it to a different mode (the 'project--files-in-directory' branch)?