mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 13:27:36 +00:00
* doc.c (store_function_docstring): Avoid applying docstring of alias to base function.
Fixes: debbugs:2603
This commit is contained in:
parent
f2475f97b7
commit
1449fa1d08
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2012-02-06 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
* doc.c (store_function_docstring): Avoid applying docstring of
|
||||
alias to base function (Bug#2603).
|
||||
|
||||
2012-02-04 Andreas Schwab <schwab@linux-m68k.org>
|
||||
|
||||
* .gdbinit (pp1, pv1): Remove redundant defines.
|
||||
|
|
|
|||
|
|
@ -502,10 +502,12 @@ aren't strings. */)
|
|||
/* Scanning the DOC files and placing docstring offsets into functions. */
|
||||
|
||||
static void
|
||||
store_function_docstring (Lisp_Object fun, EMACS_INT offset)
|
||||
store_function_docstring (Lisp_Object sym, EMACS_INT offset)
|
||||
/* Use EMACS_INT because we get offset from pointer subtraction. */
|
||||
{
|
||||
fun = indirect_function (fun);
|
||||
/* Don't use indirect_function here, or defaliases will apply their
|
||||
docstrings to the base functions (Bug#2603). */
|
||||
Lisp_Object fun = XSYMBOL (sym)->function;
|
||||
|
||||
/* The type determines where the docstring is stored. */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue