diff options
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -507,9 +507,11 @@ aren't strings. */) | |||
| 507 | /* Scanning the DOC files and placing docstring offsets into functions. */ | 507 | /* Scanning the DOC files and placing docstring offsets into functions. */ |
| 508 | 508 | ||
| 509 | static void | 509 | static void |
| 510 | store_function_docstring (Lisp_Object fun, ptrdiff_t offset) | 510 | store_function_docstring (Lisp_Object obj, ptrdiff_t offset) |
| 511 | { | 511 | { |
| 512 | fun = indirect_function (fun); | 512 | /* Don't use indirect_function here, or defaliases will apply their |
| 513 | docstrings to the base functions (Bug#2603). */ | ||
| 514 | Lisp_Object fun = SYMBOLP (obj) ? XSYMBOL (obj)->function : obj; | ||
| 513 | 515 | ||
| 514 | /* The type determines where the docstring is stored. */ | 516 | /* The type determines where the docstring is stored. */ |
| 515 | 517 | ||