* lisp/recentf.el (recentf-exclude-file-by-extension-p): Fix thinko.

This commit is contained in:
Michael Albinus 2026-03-06 12:16:49 +01:00
parent 8034e48630
commit 422c3665ad

View file

@ -132,11 +132,13 @@ This predicate function is meant to be added to the list in `recentf-exclude'.
It returns non-nil if FILE-NAME's extension is in the list that is
the value of `recentf-exclude-ignored-extensions'; if that variable
is nil, this function consults `completion-ignored-extensions' instead."
(and-let* ((extension (file-name-extension file-name)))
(when-let* ((extension (file-name-extension file-name)))
(string-match-p
(regexp-opt (or recentf-exclude-ignored-extensions
completion-ignored-extensions))
(concat "\\." (regexp-quote extension) "\\'"))))
(concat
(regexp-opt (or recentf-exclude-ignored-extensions
completion-ignored-extensions))
"\\'")
(concat "." extension))))
(defun recentf-access-file (filename)
"Check whether FILENAME is accessible."