diff options
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -434,6 +434,18 @@ string is passed through `substitute-command-keys'. */) | |||
| 434 | doc = tem; | 434 | doc = tem; |
| 435 | else | 435 | else |
| 436 | return Qnil; | 436 | return Qnil; |
| 437 | |||
| 438 | /* Check for an advised function. Its doc string | ||
| 439 | has an `ad-advice-info' text property. */ | ||
| 440 | if (STRINGP (doc)) | ||
| 441 | { | ||
| 442 | Lisp_Object innerfunc; | ||
| 443 | innerfunc = Fget_text_property (make_number (0), | ||
| 444 | intern ("ad-advice-info"), | ||
| 445 | doc); | ||
| 446 | if (! NILP (innerfunc)) | ||
| 447 | doc = call1 (intern ("ad-make-advised-docstring"), innerfunc); | ||
| 448 | } | ||
| 437 | } | 449 | } |
| 438 | else if (EQ (funcar, Qmacro)) | 450 | else if (EQ (funcar, Qmacro)) |
| 439 | return Fdocumentation (Fcdr (fun), raw); | 451 | return Fdocumentation (Fcdr (fun), raw); |