[prev in list] [next in list] [prev in thread] [next in thread]
List: ess-help
Subject: Re: [ESS] commenting region
From: Kasper Daniel Hansen <khansen () stat ! berkeley ! edu>
Date: 2007-08-07 21:32:56
Message-ID: AD07B68C-E0CF-4E7B-9C71-1FAEF53B32DB () stat ! berkeley ! edu
[Download RAW message or body]
The short answer is "yes and it works in exactly the same way with
the same keybinding" (M-;)
Did you try at all?
Kasper
On Aug 7, 2007, at 8:35 AM, Charles C. Berry wrote:
>
>
>
> M-; runs the command comment-dwim
> which is an interactive compiled Lisp function in `newcomment.el'.
> It is bound to M-;.
> (comment-dwim arg)
>
> Call the comment command you want (Do What I Mean).
> If the region is active and `transient-mark-mode' is on, call
> `comment-region' (unless it only consists of comments, in which
> case it calls `uncomment-region').
> Else, if the current line is empty, insert a comment and indent it.
> Else if a prefix arg is specified, call `comment-kill'.
> Else, call `comment-indent'.
> You can configure `comment-style' to change the way regions are
> commented.
>
>
> Google 'ESS comment region' for more discussion.
>
>
> On Tue, 7 Aug 2007, Stephen Bond wrote:
>
>> Is there a way to comment out a whole region in ESS similar to the
>> emacs
>> capability in C and Fortran modes?
>>
>> Thank you all
>>
>> Stephen C. Bond
>>
>> ______________________________________________
>> ESS-help@stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>
>
> Charles C. Berry (858) 534-2098
> Dept of Family/
> Preventive Medicine
> E mailto:cberry@tajo.ucsd.edu UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego
> 92093-0901
>
> ______________________________________________
> ESS-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
______________________________________________
ESS-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic