From 864c8013fdd0a548d98d81dd21af2f88f207858a Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 13 Apr 2022 23:30:55 +0200 Subject: [PATCH] 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. --- lisp/help-fns.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5