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).
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).
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 thebackup-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)
.