Function: gnus-score-file-rank
gnus-score-file-rank is a byte-compiled function defined in
gnus-score.el.gz.
Signature
(gnus-score-file-rank FILE)
Documentation
Return a number that says how specific score FILE is.
Destroys the current buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-score.el.gz
(defun gnus-score-file-rank (file)
"Return a number that says how specific score FILE is.
Destroys the current buffer."
(if (member file gnus-internal-global-score-files)
0
(when (string-match
(concat "^" (regexp-quote
(expand-file-name
(file-name-as-directory gnus-kill-files-directory))))
file)
(setq file (substring file (match-end 0))))
(insert file)
(goto-char (point-min))
(let ((beg (point))
elems)
(while (re-search-forward "[./]" nil t)
(push (buffer-substring beg (1- (point)))
elems))
(erase-buffer)
(setq elems (delete "all" elems))
(length elems))))