diff options
| author | Chong Yidong | 2012-02-07 00:53:51 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-02-07 00:53:51 +0800 |
| commit | 4a6c7bb8744bbbadf3b3b0be8660a2100ae3e7aa (patch) | |
| tree | c32b5a292110b7ca43621e26f1819a76726819a8 /src | |
| parent | 2d16b285e34db3aae3c9325301ac0277352077dd (diff) | |
| download | emacs-4a6c7bb8744bbbadf3b3b0be8660a2100ae3e7aa.tar.gz emacs-4a6c7bb8744bbbadf3b3b0be8660a2100ae3e7aa.zip | |
* doc.c (store_function_docstring): Fix last change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -502,12 +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 sym, EMACS_INT offset) | 505 | store_function_docstring (Lisp_Object obj, 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 | /* Don't use indirect_function here, or defaliases will apply their | 508 | /* Don't use indirect_function here, or defaliases will apply their |
| 509 | docstrings to the base functions (Bug#2603). */ | 509 | docstrings to the base functions (Bug#2603). */ |
| 510 | Lisp_Object fun = XSYMBOL (sym)->function; | 510 | Lisp_Object fun = SYMBOLP (obj) ? XSYMBOL (obj)->function : obj; |
| 511 | 511 | ||
| 512 | /* The type determines where the docstring is stored. */ | 512 | /* The type determines where the docstring is stored. */ |
| 513 | 513 | ||