aboutsummaryrefslogtreecommitdiffstats
path: root/etc/tutorials
diff options
context:
space:
mode:
authorStefan Kangas2021-05-02 15:04:00 +0200
committerStefan Kangas2021-05-02 15:04:00 +0200
commit6c1c3204e4761fd0d8bdbf22c6519d2328f60450 (patch)
treeb04218c2b2ab92cf0165fed8a143c565cdfd3dfa /etc/tutorials
parentc842399ef01adf3f984e4c503411a9c5f025738f (diff)
downloademacs-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/TUTORIAL6
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
1039Here are some other useful C-h options: 1039Here 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