diff options
| author | Kevin Ryde | 2009-12-26 21:30:00 +0000 |
|---|---|---|
| committer | Kevin Ryde | 2009-12-26 21:30:00 +0000 |
| commit | 91c4831e1af093e558f378210e6027e6abbb3838 (patch) | |
| tree | 5c45fdf193fb42c56c1c2349d341f4855471be58 | |
| parent | 39764e76410ea566484a756350139b83c729eede (diff) | |
| download | emacs-91c4831e1af093e558f378210e6027e6abbb3838.tar.gz emacs-91c4831e1af093e558f378210e6027e6abbb3838.zip | |
* man.el (man): Revise docstring a bit to show -a and -l as
examples. Add -k description since support for it has otherwise
been a secret. (Further to bug#3717.)
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/man.el | 43 |
2 files changed, 37 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a2710d59b7e..28b4f29836c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,6 +3,10 @@ | |||
| 3 | * info-look.el (sh-mode): Look for coreutils new "Concept Index" | 3 | * info-look.el (sh-mode): Look for coreutils new "Concept Index" |
| 4 | node. Keep previous "Index" name to work with past coreutils too. | 4 | node. Keep previous "Index" name to work with past coreutils too. |
| 5 | 5 | ||
| 6 | * man.el (man): Revise docstring a bit to show -a and -l as | ||
| 7 | examples. Add -k description since support for it has otherwise | ||
| 8 | been a secret. (Further to bug#3717.) | ||
| 9 | |||
| 6 | 2009-12-26 Michael Albinus <michael.albinus@gmx.de> | 10 | 2009-12-26 Michael Albinus <michael.albinus@gmx.de> |
| 7 | 11 | ||
| 8 | * net/tramp.el (tramp-handle-insert-directory): Quote "'" in the | 12 | * net/tramp.el (tramp-handle-insert-directory): Quote "'" in the |
diff --git a/lisp/man.el b/lisp/man.el index de827d89ef6..c39621449f6 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -808,16 +808,39 @@ POS defaults to `point'." | |||
| 808 | ;;;###autoload | 808 | ;;;###autoload |
| 809 | (defun man (man-args) | 809 | (defun man (man-args) |
| 810 | "Get a Un*x manual page and put it in a buffer. | 810 | "Get a Un*x manual page and put it in a buffer. |
| 811 | This command is the top-level command in the man package. It runs a Un*x | 811 | This command is the top-level command in the man package. It |
| 812 | command to retrieve and clean a manpage in the background and places the | 812 | runs a Un*x command to retrieve and clean a manpage in the |
| 813 | results in a Man mode (manpage browsing) buffer. See variable | 813 | background and places the results in a `Man-mode' browsing |
| 814 | `Man-notify-method' for what happens when the buffer is ready. | 814 | buffer. See variable `Man-notify-method' for what happens when |
| 815 | If a buffer already exists for this man page, it will display immediately. | 815 | the buffer is ready. If a buffer already exists for this man |
| 816 | 816 | page, it will display immediately. | |
| 817 | To specify a man page from a certain section, type SUBJECT(SECTION) or | 817 | |
| 818 | SECTION SUBJECT when prompted for a manual entry. To see manpages from | 818 | For a manpage from a particular section, use either of the |
| 819 | all sections related to a subject, put something appropriate into the | 819 | following. \"cat(1)\" is how cross-references appear and is |
| 820 | `Man-switches' variable, which see." | 820 | passed to man as \"1 cat\". |
| 821 | |||
| 822 | cat(1) | ||
| 823 | 1 cat | ||
| 824 | |||
| 825 | To see manpages from all sections related to a subject, use an | ||
| 826 | \"all pages\" option (which might be \"-a\" if it's not the | ||
| 827 | default), then step through with `Man-next-manpage' (\\<Man-mode-map>\\[Man-next-manpage]) etc. | ||
| 828 | Add to `Man-switches' to make this option permanent. | ||
| 829 | |||
| 830 | -a chmod | ||
| 831 | |||
| 832 | An explicit filename can be given too. Use -l if it might | ||
| 833 | otherwise look like a page name. | ||
| 834 | |||
| 835 | /my/file/name.1.gz | ||
| 836 | -l somefile.1 | ||
| 837 | |||
| 838 | An \"apropos\" query with -k gives a buffer of matching page | ||
| 839 | names or descriptions. The pattern argument is usually an | ||
| 840 | \"egrep\" style regexp. | ||
| 841 | |||
| 842 | -k pattern" | ||
| 843 | |||
| 821 | (interactive | 844 | (interactive |
| 822 | (list (let* ((default-entry (Man-default-man-entry)) | 845 | (list (let* ((default-entry (Man-default-man-entry)) |
| 823 | ;; ignore case because that's friendly for bizarre | 846 | ;; ignore case because that's friendly for bizarre |