diff options
| author | Kim F. Storm | 2003-07-14 21:49:02 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-07-14 21:49:02 +0000 |
| commit | ab765ff7cb039bce0526d1a3cfc2f615aa62a44a (patch) | |
| tree | ae995278e62e9cbe33d0c0bd3de2eb36051e2e74 | |
| parent | 72b9a9d1a492e46dcd87300b9da14e6774df2371 (diff) | |
| download | emacs-ab765ff7cb039bce0526d1a3cfc2f615aa62a44a.tar.gz emacs-ab765ff7cb039bce0526d1a3cfc2f615aa62a44a.zip | |
(apropos-sort-by-scores): Rename from apropos-show-scores.
All uses changed.
| -rw-r--r-- | lisp/apropos.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el index 3bcaeafdcaa..74b0f3fa838 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el | |||
| @@ -102,8 +102,9 @@ for the regexp; the part that matches gets displayed in this font." | |||
| 102 | :group 'apropos | 102 | :group 'apropos |
| 103 | :type 'face) | 103 | :type 'face) |
| 104 | 104 | ||
| 105 | (defcustom apropos-show-scores nil | 105 | (defcustom apropos-sort-by-scores nil |
| 106 | "*Non-nil means show score for each match, and sort matches by scores." | 106 | "*Non-nil means sort matches by scores; best match is shown first. |
| 107 | The computed score is shown for each match." | ||
| 107 | :group 'apropos | 108 | :group 'apropos |
| 108 | :type 'boolean) | 109 | :type 'boolean) |
| 109 | 110 | ||
| @@ -771,7 +772,7 @@ separate items with that string." | |||
| 771 | (lambda (a b) | 772 | (lambda (a b) |
| 772 | ;; Don't sort by score if user can't see the score. | 773 | ;; Don't sort by score if user can't see the score. |
| 773 | ;; It would be confusing. -- rms. | 774 | ;; It would be confusing. -- rms. |
| 774 | (if apropos-show-scores | 775 | (if apropos-sort-by-scores |
| 775 | (or (> (cadr a) (cadr b)) | 776 | (or (> (cadr a) (cadr b)) |
| 776 | (and (= (cadr a) (cadr b)) | 777 | (and (= (cadr a) (cadr b)) |
| 777 | (string-lessp (car a) (car b)))) | 778 | (string-lessp (car a) (car b)))) |
| @@ -804,7 +805,7 @@ separate items with that string." | |||
| 804 | ;; changed the variable! | 805 | ;; changed the variable! |
| 805 | ;; Just say `no' to variables containing faces! | 806 | ;; Just say `no' to variables containing faces! |
| 806 | 'face apropos-symbol-face) | 807 | 'face apropos-symbol-face) |
| 807 | (if apropos-show-scores | 808 | (if apropos-sort-by-scores |
| 808 | (insert " (" (number-to-string (cadr apropos-item)) ") ")) | 809 | (insert " (" (number-to-string (cadr apropos-item)) ") ")) |
| 809 | ;; Calculate key-bindings if we want them. | 810 | ;; Calculate key-bindings if we want them. |
| 810 | (and do-keys | 811 | (and do-keys |