GNU bug report logs - #59722
30.0.50; project-find-regexp searches project-ignored files

Previous Next

Package: emacs;

Reported by: Rudolf Adamkovič <salutis <at> me.com>

Date: Wed, 30 Nov 2022 14:36:02 UTC

Severity: normal

Found in version 30.0.50

Full log


Message #8 received at 59722 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Rudolf Adamkovič <salutis <at> me.com>, 59722 <at> debbugs.gnu.org
Subject: Re: bug#59722: 30.0.50; project-find-regexp searches project-ignored
 files
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).




This bug report was last modified 2 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.