Function: recentf-exclude-file-by-extension-p
recentf-exclude-file-by-extension-p is a byte-compiled function
defined in recentf.el.gz.
Signature
(recentf-exclude-file-by-extension-p FILE-NAME)
Documentation
Whether to ignore FILE-NAME due to its file-name extension.
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.
Probably introduced at or before Emacs version 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/recentf.el.gz
(defun recentf-exclude-file-by-extension-p (file-name)
"Whether to ignore FILE-NAME due to its file-name extension.
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)))
(string-match-p
(concat
(regexp-opt (or recentf-exclude-ignored-extensions
completion-ignored-extensions))
"\\'")
(concat "." extension))))