[ESS-bugs] Alt+; pressed twice does not uncomment the block in SAS mode

Martin Maechler maechler at stat.math.ethz.ch
Wed Dec 7 10:01:56 CET 2005


I agree entirely with Adrian and Rich that this is a buglet
in SAS mode -- sorry, Rodney.

Just because - as I understand you - Xemacs (again) does
something unreasonable, that does not mean that  M-;  shouldn't
behave in SAS mode as it does in all (or many many at least)
other "programming" modes I know and use.

Martin

>>>>> "RoSp" == Rodney Sparapani <rsparapa at mcw.edu>
>>>>>     on Tue, 06 Dec 2005 16:41:53 -0600 writes:

    RoSp> Richard M. Heiberger wrote:
    >> I will confirm the problem.  I have an analysis at the end of this message.
    >> 
    >> In myfile.s, highlight several lines, then press M-; .
    >> The entire region is now commented with a leading ##.
    >> Then re-highlight the same lines, and press M-; , now the commented
    >> region has its ## removed.
    >> 
    >> In myfile.sas, highlight several lines, then press M-; .
    >> The lines are now prefixed with
    >> \*\|/\*
    >> and postfixed with
    >> ;\|\*/
    >> 
    >> This looks like an attempt to prefix with /* and postfix with */ but
    >> the escaping of special characters got scrambled.
    >> 
    >> 
    >> Now rehighlight the same region and again press M-; .
    >> We expect, based on the behavior in myfile.s, that the comment
    >> information would be removed.  It isn't removed.  Instead, another
    >> set is placed on each of the lines in the region.
    >> 
    >> Now I see it.  SAS has two types of comments structures,
    >> the  * xxxx ;
    >> and /* xxxx */
    >> 
    >> comment-dwim function (called by M-;) is doing something with the
    >> regular expression defining those comments and coming up with a scramble
    >> mixture of both commenting methods.
    >> 
    >> 
    RoSp> Not sure what's going on there. But, a bigger problem for xemacs users is
    RoSp> that comment-dwim checks for transient-mark-mode which does not even
    RoSp> exist. This might be fixed in the near future, but until then use the two
    RoSp> functions comment-region and uncomment-region.

    RoSp> Rodney

    RoSp> _______________________________________________
    RoSp> ESS-bugs ESS-bugs at stat.math.ethz.ch
    RoSp> https://stat.ethz.ch/mailman/listinfo/ess-bugs

    RoSp> _______________________________________________
    RoSp> ESS-core list: https://stat.ethz.ch/mailman/listinfo/ess-core




More information about the ESS-bugs mailing list