diff options
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -56,7 +56,7 @@ Lisp_Object Qfunction_documentation; | |||
| 56 | /* A list of files used to build this Emacs binary. */ | 56 | /* A list of files used to build this Emacs binary. */ |
| 57 | static Lisp_Object Vbuild_files; | 57 | static Lisp_Object Vbuild_files; |
| 58 | 58 | ||
| 59 | extern Lisp_Object Voverriding_local_map; | 59 | extern Lisp_Object Voverriding_local_map, Qclosure; |
| 60 | 60 | ||
| 61 | extern Lisp_Object Qremap; | 61 | extern Lisp_Object Qremap; |
| 62 | 62 | ||
| @@ -385,6 +385,11 @@ string is passed through `substitute-command-keys'. */) | |||
| 385 | else | 385 | else |
| 386 | return Qnil; | 386 | return Qnil; |
| 387 | } | 387 | } |
| 388 | else if (FUNVECP (fun)) | ||
| 389 | { | ||
| 390 | /* Unless otherwise handled, funvecs have no documentation. */ | ||
| 391 | return Qnil; | ||
| 392 | } | ||
| 388 | else if (STRINGP (fun) || VECTORP (fun)) | 393 | else if (STRINGP (fun) || VECTORP (fun)) |
| 389 | { | 394 | { |
| 390 | return build_string ("Keyboard macro."); | 395 | return build_string ("Keyboard macro."); |
| @@ -412,6 +417,8 @@ string is passed through `substitute-command-keys'. */) | |||
| 412 | else | 417 | else |
| 413 | return Qnil; | 418 | return Qnil; |
| 414 | } | 419 | } |
| 420 | else if (EQ (funcar, Qclosure)) | ||
| 421 | return Fdocumentation (Fcdr (XCDR (fun)), raw); | ||
| 415 | else if (EQ (funcar, Qmacro)) | 422 | else if (EQ (funcar, Qmacro)) |
| 416 | return Fdocumentation (Fcdr (fun), raw); | 423 | return Fdocumentation (Fcdr (fun), raw); |
| 417 | else | 424 | else |
| @@ -542,6 +549,8 @@ store_function_docstring (fun, offset) | |||
| 542 | } | 549 | } |
| 543 | else if (EQ (tem, Qmacro)) | 550 | else if (EQ (tem, Qmacro)) |
| 544 | store_function_docstring (XCDR (fun), offset); | 551 | store_function_docstring (XCDR (fun), offset); |
| 552 | else if (EQ (tem, Qclosure)) | ||
| 553 | store_function_docstring (Fcdr (XCDR (fun)), offset); | ||
| 545 | } | 554 | } |
| 546 | 555 | ||
| 547 | /* Bytecode objects sometimes have slots for it. */ | 556 | /* Bytecode objects sometimes have slots for it. */ |