Function: apropos-score-str
apropos-score-str is a byte-compiled function defined in
apropos.el.gz.
Signature
(apropos-score-str STR)
Documentation
Return apropos score for string STR.
Source Code
;; Defined in /usr/src/emacs/lisp/apropos.el.gz
(defun apropos-score-str (str)
"Return apropos score for string STR."
(if str
(let* ((l (length str))
(score (- (/ l 10))))
(dolist (s (apropos-calc-scores str apropos-all-words) score)
(setq score (+ score 1000 (/ (* (- l s) 1000) l)))))
0))