[ESS] SAS-mode problem with asterisk (infinite loop)

Jim Berry jberry at frb.gov
Sat Jun 18 02:19:35 CEST 2005


Hi Rodney,

I downloaded and compiled ess-5.2.8.  Same problem with SAS mode.
GNU Emacs 21.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2003-08-20

Same problem on Solaris 9 with emacs 20.4 and emacs 21.3.  
I have not tried this on Windows.


emacs -q
M-x load-file ess-site RET
C-x C-f junk.sas  RET
 *;RET   

This stalls until I enter C-g. No problem if the asterisk is in column
1.  We can easily avoid this, but perhaps a subtle indentation bug.

Thanks
Jim  



> 
> >Something weird to report for the SAS-mode maintainers.
> >
> >Using ess-version 5.1.24
> >GNU Emacs 21.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
> >
> >If a file in sas-mode begins with whitespace, followed by an asterisk,
> >followed by anything, followed by a semi colon, then hitting RET after
> >the semicolon will cause a stall, and one needs to hit ^G.  Curiously
> >enough the problem disappears if we remove the leading whitespace.
> >
> >This should demonstrate the issue:
> >
> >(progn
> > (switch-to-buffer (create-file-buffer "junk.sas"))
> > (sas-mode)
> > (insert " * Hit Enter after the semicolon. Then ^G to break; "))
> >
> >We can avoid this construction, but thought you'd like to know.
> >
> >--
> >Jim Berry
> >Federal Reserve Board
> >  
> >
> Hi Jim:
> 
> I can't reproduce it.  So, it may be a bug in either emacs or ESS.  
> Could you
> upgrade them and see if that helps?
> 
> Thanks, Rodney




More information about the ESS-help mailing list