Article View: gnu.emacs.bug
Article #99722scan_sexps_forward() bug
From: carroll
Date: Sat, 26 May 1990 17:01
Date: Sat, 26 May 1990 17:01
20 lines
1436 bytes
1436 bytes
GNU-Emacs 18.55 :
I think that there's a bug in scan_sexps_forward () in syntax.c.
The bug manifests it self if you have a line that has a close paren as the
first non-white space, point is before the close paren, and you execute
(parse-partial-sexp (point) (point-max) -1)
The return value has a bogus element at position 3. The problem appears to
be that if the first case label selected in the main switch is case Sclose,
the statement
curlevel->prev = curlevel->last; /* ~ line 947 */
is bogus, since curlevel->last is an auto var, and has not been set. Even
though curlevel->prev is set to -1 at the start of the function,
curlevel->last is not. I suspect that setting it along with curlevel->prev
would solve the problem. I've put that fix in Epoch, and it seems to work.
Technical Details
Message-ID:
<51300006@m.cs.uiuc.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!carrollShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,244e1232a1344c27,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-05-26 17:09:23 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!carroll From: carroll@m.cs.uiuc.edu Newsgroups: gnu.emacs.bug Subject: scan_sexps_forward() bug Message-ID: <51300006@m.cs.uiuc.edu> Date: 26 May 90 17:01:00 GMT Lines: 20 Nf-ID: #N:m.cs.uiuc.edu:51300006:000:792 Nf-From: m.cs.uiuc.edu!carroll May 26 12:01:00 1990 Posted: Sat May 26 18:01:00 1990