]> git.eshelyaron.com Git - emacs.git/commitdiff
Make `C-h m' actually output the documentation for the major mode
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 13 Apr 2022 21:30:55 +0000 (23:30 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 13 Apr 2022 21:30:55 +0000 (23:30 +0200)
* lisp/help-fns.el (describe-mode): Get the documentation for the
correct major mode.

lisp/help-fns.el

index 5a38153acaac2b5dfbe13692fbb927a2fb26f473..c06c0f3815bbe5a47a6e7f182d39a687bb59e184 100644 (file)
@@ -1913,7 +1913,7 @@ documentation for the major and minor modes of that buffer."
                              (lambda (_)
                                (help-function-def--button-function
                                 major file-name))))))
-          (insert (help-split-fundoc (documentation major-mode) nil 'doc)
+          (insert (help-split-fundoc (documentation major) nil 'doc)
                   (with-current-buffer buffer
                     (help-fns--list-local-commands)))
           (ensure-empty-lines 1)