diff options
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -502,10 +502,12 @@ aren't strings. */) | |||
| 502 | /* Scanning the DOC files and placing docstring offsets into functions. */ | 502 | /* Scanning the DOC files and placing docstring offsets into functions. */ |
| 503 | 503 | ||
| 504 | static void | 504 | static void |
| 505 | store_function_docstring (Lisp_Object fun, EMACS_INT offset) | 505 | store_function_docstring (Lisp_Object obj, EMACS_INT offset) |
| 506 | /* Use EMACS_INT because we get offset from pointer subtraction. */ | 506 | /* Use EMACS_INT because we get offset from pointer subtraction. */ |
| 507 | { | 507 | { |
| 508 | fun = indirect_function (fun); | 508 | /* Don't use indirect_function here, or defaliases will apply their |
| 509 | docstrings to the base functions (Bug#2603). */ | ||
| 510 | Lisp_Object fun = SYMBOLP (obj) ? XSYMBOL (obj)->function : obj; | ||
| 509 | 511 | ||
| 510 | /* The type determines where the docstring is stored. */ | 512 | /* The type determines where the docstring is stored. */ |
| 511 | 513 | ||