diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc.c | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -436,8 +436,20 @@ aren't strings. */) | |||
| 436 | documentation_property: | 436 | documentation_property: |
| 437 | 437 | ||
| 438 | tem = Fget (symbol, prop); | 438 | tem = Fget (symbol, prop); |
| 439 | |||
| 440 | /* If we don't have any documentation for this symbol, try to see whether | ||
| 441 | it's an indirect variable and get the documentation from there instead. */ | ||
| 442 | if (NILP (tem)) | ||
| 443 | { | ||
| 444 | Lisp_Object indirect = Findirect_variable (symbol); | ||
| 445 | if (!NILP (indirect)) | ||
| 446 | tem = Fget (indirect, prop); | ||
| 447 | } | ||
| 448 | |||
| 439 | if (EQ (tem, make_fixnum (0))) | 449 | if (EQ (tem, make_fixnum (0))) |
| 440 | tem = Qnil; | 450 | tem = Qnil; |
| 451 | |||
| 452 | /* See if we want to look for the string in the DOC file. */ | ||
| 441 | if (FIXNUMP (tem) || (CONSP (tem) && FIXNUMP (XCDR (tem)))) | 453 | if (FIXNUMP (tem) || (CONSP (tem) && FIXNUMP (XCDR (tem)))) |
| 442 | { | 454 | { |
| 443 | Lisp_Object doc = tem; | 455 | Lisp_Object doc = tem; |