Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring nonstandard backup files #1095

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arensb
Copy link

@arensb arensb commented Mar 23, 2024

treemacs--std-ignore-file-predicate has a long list of checks to determine whether a file should be ignored. One of them is to see whether it ends in ~, i.e., it's a backup file.

Emacs allows people to customize backup file names, and treemacs--std-ignore-file-predicate's test fails when someone uses a nonstandard extension like .bak for backup files. Thankfully, Emacs includes the backup-file-name-p function to test whether something is a backup filename. It's a simple matter of replacing (eq ?~ last) with (backup-file-name-p ,file).

Copy link

stale bot commented May 22, 2024

This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues).

@stale stale bot added the stale label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant