emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/apropos.el


From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/lisp/apropos.el
Date: Thu, 23 May 2002 06:24:16 -0400

Index: emacs/lisp/apropos.el
diff -c emacs/lisp/apropos.el:1.85 emacs/lisp/apropos.el:1.86
*** emacs/lisp/apropos.el:1.85  Thu May 23 06:19:46 2002
--- emacs/lisp/apropos.el       Thu May 23 06:24:14 2002
***************
*** 297,307 ****
  (defun apropos-score-str (str)
    "Return apropos score for string STR."
    (if str
!       (let ((score 0)
!           (l (length str))
            i)
        (dolist (s (apropos-calc-scores str apropos-all-words) score)
!         (setq score (+ score 1000 (- (/ l 10)) (/ (* (- l s) 1000) l)))))
        0))
  
  (defun apropos-score-doc (doc)
--- 297,308 ----
  (defun apropos-score-str (str)
    "Return apropos score for string STR."
    (if str
!       (let* (
!            (l (length str))
!            (score (- (/ l 10)))
            i)
        (dolist (s (apropos-calc-scores str apropos-all-words) score)
!         (setq score (+ score 1000 (/ (* (- l s) 1000) l)))))
        0))
  
  (defun apropos-score-doc (doc)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]