diff options
| author | Stefan Kangas | 2021-05-02 15:04:00 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2021-05-02 15:04:00 +0200 |
| commit | 6c1c3204e4761fd0d8bdbf22c6519d2328f60450 (patch) | |
| tree | b04218c2b2ab92cf0165fed8a143c565cdfd3dfa /etc/tutorials | |
| parent | c842399ef01adf3f984e4c503411a9c5f025738f (diff) | |
| download | emacs-6c1c3204e4761fd0d8bdbf22c6519d2328f60450.tar.gz emacs-6c1c3204e4761fd0d8bdbf22c6519d2328f60450.zip | |
Add new help command 'describe-command'
* lisp/help-fns.el (describe-command): New command.
(help-fns--describe-function-or-command-prompt): New helper
function to prompt for a function or function. (Bug#46627)
(describe-function): Use above new helper function.
* lisp/help.el (help-map): Bind above new command to `C-h x'.
(help-for-help): Add this new command to the help summary.
* lisp/menu-bar.el (menu-bar-describe-menu): Add the new command to
the help menu.
* doc/emacs/help.texi (Help Summary, Name Help): Document
'describe-command', and update documentation on 'describe-function'.
* etc/tutorials/TUTORIAL: Change reference from 'describe-function' to
'describe-command'.
Diffstat (limited to 'etc/tutorials')
| -rw-r--r-- | etc/tutorials/TUTORIAL | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/tutorials/TUTORIAL b/etc/tutorials/TUTORIAL index 6194e55ea35..dcdb61f23ec 100644 --- a/etc/tutorials/TUTORIAL +++ b/etc/tutorials/TUTORIAL | |||
| @@ -1038,10 +1038,10 @@ then type C-x 1. | |||
| 1038 | 1038 | ||
| 1039 | Here are some other useful C-h options: | 1039 | Here are some other useful C-h options: |
| 1040 | 1040 | ||
| 1041 | C-h f Describe a function. You type in the name of the | 1041 | C-h x Describe a command. You type in the name of the |
| 1042 | function. | 1042 | command. |
| 1043 | 1043 | ||
| 1044 | >> Try typing C-h f previous-line <Return>. | 1044 | >> Try typing C-h x previous-line <Return>. |
| 1045 | This displays all the information Emacs has about the | 1045 | This displays all the information Emacs has about the |
| 1046 | function which implements the C-p command. | 1046 | function which implements the C-p command. |
| 1047 | 1047 | ||