unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: "Rudolf Adamkovič" <salutis@me.com>, 59722@debbugs.gnu.org
Subject: bug#59722: 30.0.50; project-find-regexp searches project-ignored files
Date: Thu, 1 Dec 2022 01:30:03 +0200	[thread overview]
Message-ID: <1f6b991a-d67e-5e38-b77f-038e97218e4e@yandex.ru> (raw)
In-Reply-To: <m2cz94t4fm.fsf@me.com>

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)?





  reply	other threads:[~2022-11-30 23:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-30 14:35 bug#59722: 30.0.50; project-find-regexp searches project-ignored files Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-30 15:09 ` Dmitry Gutov
2022-11-30 23:20   ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-30 23:30     ` Dmitry Gutov [this message]
2022-12-04 23:36       ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-05  0:43         ` Dmitry Gutov
2022-12-09 16:21           ` Dmitry Gutov
2022-12-11 12:38           ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-11 20:13             ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f6b991a-d67e-5e38-b77f-038e97218e4e@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=59722@debbugs.gnu.org \
    --cc=salutis@me.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).