Skip to content

Implement project-ignores for the project.el backend#2013

Merged
bbatsov merged 1 commit into
masterfrom
feature/project-el-ignores
Jun 15, 2026
Merged

Implement project-ignores for the project.el backend#2013
bbatsov merged 1 commit into
masterfrom
feature/project-el-ignores

Conversation

@bbatsov

@bbatsov bbatsov commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Projectile already implements project-root, project-files, project-name and project-buffers, but project.el's protocol also expects project-ignores. Without it, tools that consult the backend for ignore globs (like project-find-regexp) fell back to project.el's generic defaults and never saw Projectile's own ignore configuration.

This adds the method, translating Projectile's global ignores, ignored file suffixes, and dirconfig (.projectile) ignore entries into the glob format project.el documents (global names match at any depth, dirconfig paths rooted with a leading ./). That's the last real gap in the backend protocol - project-roots is obsolete and project-external-roots has no Projectile equivalent.

Projectile already provided project-root, project-files, project-name
and project-buffers, but project.el's protocol also expects
project-ignores. Without it, tools that consult the backend for ignore
globs (e.g. project-find-regexp) fell back to project.el's generic
defaults and missed Projectile's own ignore configuration.

Translate Projectile's globally ignored directories and file suffixes,
the globally ignored files, and the dirconfig (.projectile) ignore
entries into the glob format project.el documents: global names match at
any depth, dirconfig paths are rooted with a leading "./".
@bbatsov bbatsov force-pushed the feature/project-el-ignores branch from 0ba8bf3 to 7a10b13 Compare June 15, 2026 12:44
@bbatsov bbatsov merged commit afa414e into master Jun 15, 2026
10 checks passed
@bbatsov bbatsov deleted the feature/project-el-ignores branch June 15, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant