diff options
| author | Andrea Corallo | 2020-04-25 18:16:17 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-04-25 19:55:39 +0100 |
| commit | a7fac2e91fb424fcf47ea8a23c218c272dd83434 (patch) | |
| tree | 620e5295a71b246e191a7f61c756d9e0f8ad985d /src/doc.c | |
| parent | f691af80f1c2073e610a382029790f7c6f97dd5d (diff) | |
| download | emacs-a7fac2e91fb424fcf47ea8a23c218c272dd83434.tar.gz emacs-a7fac2e91fb424fcf47ea8a23c218c272dd83434.zip | |
Lazy load function documentation.
* src/comp.c (native_function_doc): New function.
(load_comp_unit): Do not load function doc during load.
* src/comp.h: Extern 'native_function_doc'.
* src/doc.c (Fdocumentation): Call 'native_function_doc' to
retrive function doc.
* src/pdumper.c (dump_native_comp_unit): Zero 'data_fdoc_h' before
dumping.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 5 |
1 files changed, 1 insertions, 4 deletions
| @@ -337,10 +337,7 @@ string is passed through `substitute-command-keys'. */) | |||
| 337 | fun = XCDR (fun); | 337 | fun = XCDR (fun); |
| 338 | #ifdef HAVE_NATIVE_COMP | 338 | #ifdef HAVE_NATIVE_COMP |
| 339 | if (!NILP (Fsubr_native_elisp_p (fun))) | 339 | if (!NILP (Fsubr_native_elisp_p (fun))) |
| 340 | doc = | 340 | doc = native_function_doc (fun); |
| 341 | Fgethash (make_fixnum (XSUBR (fun)->doc), | ||
| 342 | XNATIVE_COMP_UNIT (Fsubr_native_comp_unit (fun))->data_fdoc_h, | ||
| 343 | Qnil); | ||
| 344 | else | 341 | else |
| 345 | #endif | 342 | #endif |
| 346 | if (SUBRP (fun)) | 343 | if (SUBRP (fun)) |