aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/doc.c b/src/doc.c
index 1a7b307816d..d71a3ce1d80 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -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
509static void 509static void
510store_function_docstring (Lisp_Object fun, ptrdiff_t offset) 510store_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