summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2018-01-28 21:57:59 +0100
committerPhilipp Stephani <phst@google.com>2018-02-02 20:31:40 +0100
commitf3d0db7f0f9639ec0198d4f4f2c3eb9c7b495778 (patch)
treeea08cabfb0f6262e7c9fe8137f93d9d16d96ad42 /lisp/help-fns.el
parent344750aef4a8e8c67b1857cf0fe413ba855026d6 (diff)
downloademacs-f3d0db7f0f9639ec0198d4f4f2c3eb9c7b495778.tar.gz
emacs-f3d0db7f0f9639ec0198d4f4f2c3eb9c7b495778.tar.bz2
emacs-f3d0db7f0f9639ec0198d4f4f2c3eb9c7b495778.zip
Add support for module functions to C-h f (Bug#30163).
* lisp/help-fns.el (help-fns-function-description-header): Handle module functions. * test/src/emacs-module-tests.el (module/describe-function-1): New test.
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 7a94d2f61ae..a592809de6a 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -642,6 +642,8 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED REAL-DEF)."
(concat beg "Lisp macro"))
((byte-code-function-p def)
(concat beg "compiled Lisp function"))
+ ((module-function-p def)
+ (concat beg "module function"))
((eq (car-safe def) 'lambda)
(concat beg "Lisp function"))
((eq (car-safe def) 'closure)