Subject: bug#59722: 30.0.50; project-find-regexp searches project-ignored files

From: Dmitry Gutov <[email-masked]>
Date: Wed, 30 Nov 2022 17:09:38 +0200

On 30/11/2022 16:35, Rudolf Adamkovič via Bug reports for GNU Emacs, the 
Swiss army knife of text editors wrote:
> 
> I have the following `project.el' configuration:
> 
>    (setq xref-search-program 'ripgrep)
> 
> and the following `.dir-locals.el' file in a project:
> 
>    ((nil . ((project-ignores . ("apps/**/*.scm")))))
> 
> As expected, e.g. `project-find-file' ignores all `.scm' files in the
> `apps' subdirectory of the project, however `project-find-regexp' does
> not ignore them.  TL;DR,
> 
> Expected:
> 
>    `project-find-regexp' honors `project-ignores'

Hi! 'project-ignores' is not a variable, it's a generic function.

What backend are you using? If it's (most likely) project-vc, then the 
variable you must be looking for is 'project-vc-ignores'.

To answer the "what backend" question, you can evaluate (project-current).