From: Lars Ingebrigtsen Date: Wed, 13 Apr 2022 21:30:55 +0000 (+0200) Subject: Make `C-h m' actually output the documentation for the major mode X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~2370^2~593 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=864c8013fdd0a548d98d81dd21af2f88f207858a;p=emacs.git Make `C-h m' actually output the documentation for the major mode * lisp/help-fns.el (describe-mode): Get the documentation for the correct major mode. --- diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 5a38153acaa..c06c0f3815b 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -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)