[ESS-bugs] Alt+; pressed twice does not uncomment the block in SAS mode
Adrian Dragulescu
adrian_d at eskimo.com
Tue Dec 6 23:19:03 CET 2005
Rodney,
Sorry, for the confusion.
I highlight (mark) the area I want to comment. Then I press M-;. In all
Emacs modes that I use, it comments the entire area I marked. For
example, in R, it adds # at the beginning of each line. If I mark the
recently commented area and I press M-; I uncomment the mark. This does
not happen in ESS[SAS] mode. It comments on first M-;, but it does not
uncomment on second M-;.
See also the emacs manual:
http://www.gnu.org/software/emacs/manual/emacs.html#Comment%20Commands
I think adding a * at the beginning of each line would be just fine for
ESS[SAS]. With my setting, it adds \*\|/\* at the beginning and ;\|\*/ at
the end of each line.
Let me know what you think. Thanks a lot for taking the time,
Adrian
On Tue, 6 Dec 2005, Rodney Sparapani wrote:
> Adrian Dragulescu wrote:
>
> >In the ESS[R] mode if you press Alt+; once it comments the block. If you
> >press Alt+; again it uncomments the block.
> >
> >In the ESS[SAS] mode if you press Alt+ once it comments the block. If you
> >press Alt+; again it comments the block one more time.
> >
> >In that sense, it is a minor bug.
> >
> >Thanks in advance for any help.
> >
> >Adrian
> >
> >
> Hi Adrian:
>
> Perhaps it's the word "block" that I don't understand. When I press M-; in
> ESS[R], I get a comment that begins at the END of the line. Is that
> what you get?
> Is that what you want ESS[SAS] to do?
>
> Rodney
>
More information about the ESS-bugs
mailing list