aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/apropos.el13
2 files changed, 11 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index de5dd56ddbb..12481eff139 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12014-02-23 Juanma Barranquero <lekktu@gmail.com>
2
3 * apropos.el (apropos-property, apropos-all-words-regexp)
4 (apropos-true-hit, apropos-variable, apropos-print):
5 Fix docstring typos, and remove obsolete comment.
6
12014-02-23 Michael Albinus <michael.albinus@gmx.de> 72014-02-23 Michael Albinus <michael.albinus@gmx.de>
2 8
3 * net/tramp-sh.el (tramp-sh-handle-file-truename): 9 * net/tramp-sh.el (tramp-sh-handle-file-truename):
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 93e2e42ee9b..47e44485c62 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -99,7 +99,7 @@ include key-binding information in its output."
99 99
100(defface apropos-property 100(defface apropos-property
101 '((t (:inherit font-lock-builtin-face))) 101 '((t (:inherit font-lock-builtin-face)))
102 "Face for property name in apropos output, or nil for none." 102 "Face for property name in Apropos output, or nil for none."
103 :group 'apropos 103 :group 'apropos
104 :version "24.3") 104 :version "24.3")
105 105
@@ -182,7 +182,7 @@ If value is `verbose', the computed score is shown for each match."
182 "Regexp used in current apropos run.") 182 "Regexp used in current apropos run.")
183 183
184(defvar apropos-all-words-regexp nil 184(defvar apropos-all-words-regexp nil
185 "Regexp matching apropos-all-words.") 185 "Regexp matching `apropos-all-words'.")
186 186
187(defvar apropos-files-scanned () 187(defvar apropos-files-scanned ()
188 "List of elc files already scanned in current run of `apropos-documentation'.") 188 "List of elc files already scanned in current run of `apropos-documentation'.")
@@ -411,7 +411,6 @@ This updates variables `apropos-pattern', `apropos-pattern-quoted',
411 apropos-pattern pattern 411 apropos-pattern pattern
412 apropos-regexp pattern))) 412 apropos-regexp pattern)))
413 413
414
415(defun apropos-calc-scores (str words) 414(defun apropos-calc-scores (str words)
416 "Return apropos scores for string STR matching WORDS. 415 "Return apropos scores for string STR matching WORDS.
417Value is a list of offsets of the words into the string." 416Value is a list of offsets of the words into the string."
@@ -455,7 +454,7 @@ Value is a list of offsets of the words into the string."
455(defun apropos-true-hit (str words) 454(defun apropos-true-hit (str words)
456 "Return t if STR is a genuine hit. 455 "Return t if STR is a genuine hit.
457This may fail if only one of the keywords is matched more than once. 456This may fail if only one of the keywords is matched more than once.
458This requires that at least 2 keywords (unless only one was given)." 457This requires at least two keywords (unless only one was given)."
459 (or (not str) 458 (or (not str)
460 (not words) 459 (not words)
461 (not (cdr words)) 460 (not (cdr words))
@@ -506,7 +505,7 @@ variables, not just user options."
506;;;###autoload 505;;;###autoload
507(defun apropos-variable (pattern &optional do-not-all) 506(defun apropos-variable (pattern &optional do-not-all)
508 "Show variables that match PATTERN. 507 "Show variables that match PATTERN.
509When DO-NOT-ALL is not-nil, show user options only, i.e. behave 508When DO-NOT-ALL is non-nil, show user options only, i.e. behave
510like `apropos-user-option'." 509like `apropos-user-option'."
511 (interactive (list (apropos-read-pattern 510 (interactive (list (apropos-read-pattern
512 (if current-prefix-arg "user option" "variable")) 511 (if current-prefix-arg "user option" "variable"))
@@ -1038,14 +1037,12 @@ alphabetically by symbol name; but this function also sets
1038`apropos-accumulator' to nil before returning. 1037`apropos-accumulator' to nil before returning.
1039 1038
1040If SPACING is non-nil, it should be a string; separate items with that string. 1039If SPACING is non-nil, it should be a string; separate items with that string.
1041If non-nil TEXT is a string that will be printed as a heading." 1040If non-nil, TEXT is a string that will be printed as a heading."
1042 (if (null apropos-accumulator) 1041 (if (null apropos-accumulator)
1043 (message "No apropos matches for `%s'" apropos-pattern) 1042 (message "No apropos matches for `%s'" apropos-pattern)
1044 (setq apropos-accumulator 1043 (setq apropos-accumulator
1045 (sort apropos-accumulator 1044 (sort apropos-accumulator
1046 (lambda (a b) 1045 (lambda (a b)
1047 ;; Don't sort by score if user can't see the score.
1048 ;; It would be confusing. -- rms.
1049 (if apropos-sort-by-scores 1046 (if apropos-sort-by-scores
1050 (or (> (cadr a) (cadr b)) 1047 (or (> (cadr a) (cadr b))
1051 (and (= (cadr a) (cadr b)) 1048 (and (= (cadr a) (cadr b))