diff options
| author | Paul Eggert | 2012-02-10 10:58:48 -0800 |
|---|---|---|
| committer | Paul Eggert | 2012-02-10 10:58:48 -0800 |
| commit | 6e6c82a4e687708d5a7a3887f92db45bd74da276 (patch) | |
| tree | 85dc3105240e84a8cddadb25d572e170fcdbd8bc /src/doc.c | |
| parent | 78df1fb1d46d556bfc2698ca1802972b13613ba8 (diff) | |
| parent | cc26d239af9a82cff079556a1daff4b4bf60eb5c (diff) | |
| download | emacs-6e6c82a4e687708d5a7a3887f92db45bd74da276.tar.gz emacs-6e6c82a4e687708d5a7a3887f92db45bd74da276.zip | |
Merge from trunk.
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 | ||