aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-11-11 21:13:23 -0500
committerGlenn Morris2011-11-11 21:13:23 -0500
commit98282f6f12089e9badd8da4132cd8818b3fd8f0b (patch)
treee9761a8e8959acc78e6988f23205fa92f4dfef35
parent9b8ba1e59d432dba5170b085cd45923cde0fba67 (diff)
downloademacs-98282f6f12089e9badd8da4132cd8818b3fd8f0b.tar.gz
emacs-98282f6f12089e9badd8da4132cd8818b3fd8f0b.zip
apropos.el doc fixes.
* lisp/apropos.el (apropos-do-all, apropos-library, apropos-value) (apropos-documentation): Doc fixes.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/apropos.el36
2 files changed, 33 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fd403ee047f..0b0e433c7cb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-11-12 Glenn Morris <rgm@gnu.org>
2
3 * apropos.el (apropos-do-all, apropos-library, apropos-value)
4 (apropos-documentation): Doc fixes.
5
12011-11-11 Juanma Barranquero <lekktu@gmail.com> 62011-11-11 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * progmodes/idlw-shell.el (idlwave-shell-make-new-bp-overlay): 8 * progmodes/idlw-shell.el (idlwave-shell-make-new-bp-overlay):
diff --git a/lisp/apropos.el b/lisp/apropos.el
index d3d66f2a070..1dfe5cde9ed 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -66,9 +66,22 @@
66 66
67;; I see a degradation of maybe 10-20% only. 67;; I see a degradation of maybe 10-20% only.
68(defcustom apropos-do-all nil 68(defcustom apropos-do-all nil
69 "Whether the apropos commands should do more. 69 "Non nil means apropos commands will search more extensively.
70 70This may be slower. This option affects the following commands:
71Slows them down more or less. Set this non-nil if you have a fast machine." 71
72`apropos-variable' will search all variables, not just user variables.
73`apropos-command' will also search non-interactive functions.
74`apropos' will search all symbols, not just functions, variables, faces,
75and those with property lists.
76`apropos-value' will also search in property lists and functions.
77`apropos-documentation' will search all documentation strings, not just
78those in the etc/DOC documentation file.
79
80This option only controls the default behavior. Each of the above
81commands also has an optional argument to request a more extensive search.
82
83Additionally, this option makes the function `apropos-library'
84include key-binding information in its output."
72 :group 'apropos 85 :group 'apropos
73 :type 'boolean) 86 :type 'boolean)
74 87
@@ -582,7 +595,8 @@ Returns list of symbols and documentation found."
582(defun apropos-library (file) 595(defun apropos-library (file)
583 "List the variables and functions defined by library FILE. 596 "List the variables and functions defined by library FILE.
584FILE should be one of the libraries currently loaded and should 597FILE should be one of the libraries currently loaded and should
585thus be found in `load-history'." 598thus be found in `load-history'. If `apropos-do-all' is non-nil,
599the output includes key-bindings of commands."
586 (interactive 600 (interactive
587 (let* ((libs (delq nil (mapcar 'car load-history))) 601 (let* ((libs (delq nil (mapcar 'car load-history)))
588 (libs 602 (libs
@@ -693,7 +707,9 @@ search for matches for that word as a substring. If it is a list of words,
693search for matches for any two (or more) of those words. 707search for matches for any two (or more) of those words.
694 708
695With \\[universal-argument] prefix, or if `apropos-do-all' is non-nil, also looks 709With \\[universal-argument] prefix, or if `apropos-do-all' is non-nil, also looks
696at the function and at the names and values of properties. 710at function definitions (arguments, documentation and body) and at the
711names and values of properties.
712
697Returns list of symbols and values found." 713Returns list of symbols and values found."
698 (interactive (list (apropos-read-pattern "value") 714 (interactive (list (apropos-read-pattern "value")
699 current-prefix-arg)) 715 current-prefix-arg))
@@ -738,10 +754,14 @@ or a regexp (using some regexp special characters). If it is a word,
738search for matches for that word as a substring. If it is a list of words, 754search for matches for that word as a substring. If it is a list of words,
739search for matches for any two (or more) of those words. 755search for matches for any two (or more) of those words.
740 756
741With \\[universal-argument] prefix, or if `apropos-do-all' is non-nil, also use 757Note that by default this command only searches in the file specified by
742documentation that is not stored in the documentation file and show key 758`internal-doc-file-name'; i.e., the etc/DOC file. With \\[universal-argument] prefix,
743bindings. 759or if `apropos-do-all' is non-nil, it searches all currently defined
760documentation strings.
761
744Returns list of symbols and documentation found." 762Returns list of symbols and documentation found."
763 ;; The doc used to say that DO-ALL includes key-bindings info in the
764 ;; output, but I cannot see that that is true.
745 (interactive (list (apropos-read-pattern "documentation") 765 (interactive (list (apropos-read-pattern "documentation")
746 current-prefix-arg)) 766 current-prefix-arg))
747 (apropos-parse-pattern pattern) 767 (apropos-parse-pattern pattern)