projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c3869a
)
Make `C-h m' actually output the documentation for the major mode
author
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 13 Apr 2022 21:30:55 +0000
(23:30 +0200)
committer
Lars 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
patch
|
blob
|
history
diff --git
a/lisp/help-fns.el
b/lisp/help-fns.el
index 5a38153acaac2b5dfbe13692fbb927a2fb26f473..c06c0f3815bbe5a47a6e7f182d39a687bb59e184 100644
(file)
--- 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)