Function: recentf-match-rule
recentf-match-rule is a byte-compiled function defined in
recentf.el.gz.
Signature
(recentf-match-rule FILE)
Documentation
Return the rule that match FILE.
Source Code
;; Defined in /usr/src/emacs/lisp/recentf.el.gz
(defun recentf-match-rule (file)
"Return the rule that match FILE."
(let ((rules recentf-arrange-rules)
match found)
(while (and (not found) rules)
(setq match (cdar rules))
(when (stringp match)
(setq match (list match)))
(while (and match (not (string-match (car match) file)))
(setq match (cdr match)))
(if match
(setq found (cons (caar rules) file))
(setq rules (cdr rules))))
found))