aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
authorPaul Eggert2012-02-10 10:58:48 -0800
committerPaul Eggert2012-02-10 10:58:48 -0800
commit6e6c82a4e687708d5a7a3887f92db45bd74da276 (patch)
tree85dc3105240e84a8cddadb25d572e170fcdbd8bc /src/doc.c
parent78df1fb1d46d556bfc2698ca1802972b13613ba8 (diff)
parentcc26d239af9a82cff079556a1daff4b4bf60eb5c (diff)
downloademacs-6e6c82a4e687708d5a7a3887f92db45bd74da276.tar.gz
emacs-6e6c82a4e687708d5a7a3887f92db45bd74da276.zip
Merge from trunk.
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