diff options
| author | Stefan Monnier | 2010-04-29 08:42:01 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-04-29 08:42:01 -0400 |
| commit | d6d2385247fd2a9cacd338ec5ff1b47787ef44fb (patch) | |
| tree | af10b7111b8b48b618493da655909cac599968f6 /src/doc.c | |
| parent | a982c7ec499d6d1571b89978bfca38e2dc464e0d (diff) | |
| download | emacs-d6d2385247fd2a9cacd338ec5ff1b47787ef44fb.tar.gz emacs-d6d2385247fd2a9cacd338ec5ff1b47787ef44fb.zip | |
Fix wrong-docstring problem introduced with hash-consing.
* eval.c (Fautoload): Set doc to a unique number rather than to 0.
Remove unused var `args'.
* lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
(LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
* doc.c (store_function_docstring): Use XSETCAR.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -538,7 +538,7 @@ store_function_docstring (fun, offset) | |||
| 538 | { | 538 | { |
| 539 | tem = Fcdr (Fcdr (fun)); | 539 | tem = Fcdr (Fcdr (fun)); |
| 540 | if (CONSP (tem) && INTEGERP (XCAR (tem))) | 540 | if (CONSP (tem) && INTEGERP (XCAR (tem))) |
| 541 | XSETCARFASTINT (tem, offset); | 541 | XSETCAR (tem, make_number (offset)); |
| 542 | } | 542 | } |
| 543 | else if (EQ (tem, Qmacro)) | 543 | else if (EQ (tem, Qmacro)) |
| 544 | store_function_docstring (XCDR (fun), offset); | 544 | store_function_docstring (XCDR (fun), offset); |