Function: sc-scan-info-alist
sc-scan-info-alist is a byte-compiled function defined in
supercite.el.gz.
Signature
(sc-scan-info-alist ALIST)
Documentation
Find a match in the info alist that matches a regexp in ALIST.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/supercite.el.gz
(defun sc-scan-info-alist (alist)
"Find a match in the info alist that matches a regexp in ALIST."
(let ((sc-mumble "")
rtnvalue)
(while alist
(let* ((elem (car alist))
(infokey (car elem))
(infoval (sc-mail-field infokey))
(mlist (cadr elem)))
(while mlist
(let* ((ml-elem (car mlist))
(regexp (car ml-elem))
(thing (cdr ml-elem)))
(if (string-match regexp infoval)
;; we found a match, time to return
(setq rtnvalue thing
mlist nil
alist nil)
;; else we didn't find a match
(setq mlist (cdr mlist))))) ;end of mlist loop
(setq alist (cdr alist)))) ;end of alist loop
rtnvalue))