diff options
| author | Chong Yidong | 2012-02-06 21:43:39 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-02-06 21:43:39 +0800 |
| commit | 1449fa1d08009f384f1867aecf1aa8a46220dcc4 (patch) | |
| tree | b7d19096ec5126fbc9bd2b29e2922a2d5096bcf4 /src | |
| parent | f2475f97b728ad7b4237b40600f3cb786c8fbce7 (diff) | |
| download | emacs-1449fa1d08009f384f1867aecf1aa8a46220dcc4.tar.gz emacs-1449fa1d08009f384f1867aecf1aa8a46220dcc4.zip | |
* doc.c (store_function_docstring): Avoid applying docstring of alias to base function.
Fixes: debbugs:2603
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/doc.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2353cc1eca2..860a0592e29 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-02-06 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * doc.c (store_function_docstring): Avoid applying docstring of | ||
| 4 | alias to base function (Bug#2603). | ||
| 5 | |||
| 1 | 2012-02-04 Andreas Schwab <schwab@linux-m68k.org> | 6 | 2012-02-04 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 7 | ||
| 3 | * .gdbinit (pp1, pv1): Remove redundant defines. | 8 | * .gdbinit (pp1, pv1): Remove redundant defines. |
| @@ -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 sym, 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 = XSYMBOL (sym)->function; | ||
| 509 | 511 | ||
| 510 | /* The type determines where the docstring is stored. */ | 512 | /* The type determines where the docstring is stored. */ |
| 511 | 513 | ||