Function: apropos-calc-scores
apropos-calc-scores is a byte-compiled function defined in
apropos.el.gz.
Signature
(apropos-calc-scores STR WORDS)
Documentation
Return apropos scores for string STR matching WORDS.
Value is a list of offsets of the words into the string.
Source Code
;; Defined in /usr/src/emacs/lisp/apropos.el.gz
(defun apropos-calc-scores (str words)
"Return apropos scores for string STR matching WORDS.
Value is a list of offsets of the words into the string."
(let (scores i)
(if words
(dolist (word words scores)
(if (setq i (string-match word str))
(setq scores (cons i scores))))
;; Return list of start and end position of regexp
(and (string-match apropos-pattern str)
(list (match-beginning 0) (match-end 0))))))