# HG changeset patch # User aidan # Date 1154882253 0 # Node ID 2ba8b7a25429791faa02e47a3f7d33a6cfb9f43a # Parent 981a144e71faa25867da5bf59eec95d2fc46c9f2 [xemacs-hg @ 2006-08-06 16:37:31 by aidan] Add an informative assertion and comment to snarf-documentation. diff -r 981a144e71fa -r 2ba8b7a25429 src/ChangeLog --- a/src/ChangeLog Sat Aug 05 08:30:36 2006 +0000 +++ b/src/ChangeLog Sun Aug 06 16:37:33 2006 +0000 @@ -1,3 +1,10 @@ +2006-08-06 Aidan Kehoe + + * doc.c (Fsnarf_documentation): + Add an assertion and a comment, rather than crashing in the + 76584th call of hash_string when someone's using a DOC file that + doesn't match the format. + 2006-08-05 Aidan Kehoe * syntax.c (complex_vars_of_syntax): diff -r 981a144e71fa -r 2ba8b7a25429 src/doc.c --- a/src/doc.c Sat Aug 05 08:30:36 2006 +0000 +++ b/src/doc.c Sun Aug 06 16:37:33 2006 +0000 @@ -742,6 +742,10 @@ if (p != end) { end = qxestrchr (p, '\n'); + /* If you trigger a failure with of this assertion, you probably + configured with --quick-build and need to to rebuild your DOC + file. */ + assert((end - p - 2) > -1); sym = oblookup (Vobarray, p + 2, end - p - 2); if (SYMBOLP (sym)) {