COMINT-LINE-START was matching COMINT-PROMPT-REGEXP against the
authorChris Hanson <org/chris-hanson/cph>
Fri, 13 Mar 1992 10:05:26 +0000 (10:05 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 13 Mar 1992 10:05:26 +0000 (10:05 +0000)
commit050cf9134da810244679f431f02f569693b4758c
tree6c420ee2216cbdee990bafc91d893e91450c8c6e
parentee2056a7e3fc198e7424b81455bd48254383aa15
COMINT-LINE-START was matching COMINT-PROMPT-REGEXP against the
remainder of the buffer when it is only necessary to match against the
remainder of the line.  This occasionally caused the primitive
re-match-buffer to signal an anonymous error.  This patch
will make the anonymous error extremely unlikely.

The anonymous error indicates a stack-overflow condition that is
difficult to fix properly.  However, the primitive can be modified to
use heuristics that will eliminate the error; the cost is that cases
that would have signalled the error will instead return a non-maximal
match or a non-match in cases where it would have returned a maximal
match had the stack been deep enough.
v7/src/edwin/comint.scm