diff options
| author | Glenn Morris | 2011-11-11 21:13:23 -0500 |
|---|---|---|
| committer | Glenn Morris | 2011-11-11 21:13:23 -0500 |
| commit | 98282f6f12089e9badd8da4132cd8818b3fd8f0b (patch) | |
| tree | e9761a8e8959acc78e6988f23205fa92f4dfef35 | |
| parent | 9b8ba1e59d432dba5170b085cd45923cde0fba67 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/apropos.el | 36 |
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 @@ | |||
| 1 | 2011-11-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * apropos.el (apropos-do-all, apropos-library, apropos-value) | ||
| 4 | (apropos-documentation): Doc fixes. | ||
| 5 | |||
| 1 | 2011-11-11 Juanma Barranquero <lekktu@gmail.com> | 6 | 2011-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 | 70 | This may be slower. This option affects the following commands: | |
| 71 | Slows 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, | ||
| 75 | and 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 | ||
| 78 | those in the etc/DOC documentation file. | ||
| 79 | |||
| 80 | This option only controls the default behavior. Each of the above | ||
| 81 | commands also has an optional argument to request a more extensive search. | ||
| 82 | |||
| 83 | Additionally, this option makes the function `apropos-library' | ||
| 84 | include 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. |
| 584 | FILE should be one of the libraries currently loaded and should | 597 | FILE should be one of the libraries currently loaded and should |
| 585 | thus be found in `load-history'." | 598 | thus be found in `load-history'. If `apropos-do-all' is non-nil, |
| 599 | the 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, | |||
| 693 | search for matches for any two (or more) of those words. | 707 | search for matches for any two (or more) of those words. |
| 694 | 708 | ||
| 695 | With \\[universal-argument] prefix, or if `apropos-do-all' is non-nil, also looks | 709 | With \\[universal-argument] prefix, or if `apropos-do-all' is non-nil, also looks |
| 696 | at the function and at the names and values of properties. | 710 | at function definitions (arguments, documentation and body) and at the |
| 711 | names and values of properties. | ||
| 712 | |||
| 697 | Returns list of symbols and values found." | 713 | Returns 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, | |||
| 738 | search for matches for that word as a substring. If it is a list of words, | 754 | search for matches for that word as a substring. If it is a list of words, |
| 739 | search for matches for any two (or more) of those words. | 755 | search for matches for any two (or more) of those words. |
| 740 | 756 | ||
| 741 | With \\[universal-argument] prefix, or if `apropos-do-all' is non-nil, also use | 757 | Note that by default this command only searches in the file specified by |
| 742 | documentation 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, |
| 743 | bindings. | 759 | or if `apropos-do-all' is non-nil, it searches all currently defined |
| 760 | documentation strings. | ||
| 761 | |||
| 744 | Returns list of symbols and documentation found." | 762 | Returns 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) |