Note that this can only change things when function-documentation is
defined or overloaded incorrectly.
* src/doc.c (Fdocumentation): Check that the cdr of a docstring cons
is a fixnum.
(cherry picked from commit
b07c12ce59c96db753a1f8f3a829f9ab5514e35f)
from the DOC file (bug in src/Makefile.in). */
if (BASE_EQ (doc, make_fixnum (0)))
doc = Qnil;
- if (FIXNUMP (doc) || CONSP (doc))
+ if (FIXNUMP (doc) || (CONSP (doc) && FIXNUMP (XCDR (doc))))
{
Lisp_Object tem = get_doc_string (doc, 0);
if (NILP (tem) && try_reload)