Vitalie,

per default M-; is comment-dvim (do what I mean), which is super, super
nice, work both on regions and not on regions etc.  Might require
transient-mark though, not sure.

Kasper


On Thu, Nov 14, 2013 at 10:43 PM, Vitalie Spinu <spinuvit@gmail.com> wrote:

>
> BTW, M-;  conveniently uncomment the region if it is commented. This is
> what I have in my .emacs in order to use an even more convenient
> comment-or-uncomment-region:
>
>     (global-set-key [(meta ?\;)]            'comment-or-uncomment-region)
>
>    Vitalie
>
>  >>> Chris Howden on Fri, 15 Nov 2013 14:00:50 +1100 wrote:
>
>  > FYI,
>  > I have just gone onto the stack overflow site where the emacs code was
>  > listed that I was using and left an "answer" that explains what future
>  > users should do if they encounter this problem.
>
>  > Thanks again
>
>  > Chris Howden B.Sc. (Hons) GStat.
>  > Founding Partner
>  > Evidence Based Strategic Development, IP Commercialisation and
> Innovation,
>  > Data Analysis, Modelling and Training
>  > (mobile) 0410 689 945
>  > (skype) chris.howden
>  > chris@trickysolutions.com.au
>
>  > Disclaimer: The information in this email and any attachments to it are
>  > confidential and may contain legally privileged information. If you are
>  > not the named or intended recipient, please delete this communication
> and
>  > contact us immediately. Please note you are not authorised to copy, use
> or
>  > disclose this communication or any attachments without our consent.
>  > Although this email has been checked by anti-virus software, there is a
>  > risk that email messages may be corrupted or infected by viruses or
> other
>  > interferences. No responsibility is accepted for such interference.
> Unless
>  > expressly stated, the views of the writer are not those of the company.
>  > Tricky Solutions always does our best to provide accurate forecasts and
>  > analyses based on the data supplied, however it is possible that some
>  > important predictors were not included in the data sent to us.
> Information
>  > provided by us should not be solely relied upon when making decisions
> and
>  > clients should use their own judgement.
>
>  > -----Original Message-----
>  > From: Vitalie Spinu [mailto:spinuvit@gmail.com]
>  > Sent: Friday, 15 November 2013 1:24 PM
>  > To: Chris Howden
>  > Cc: ess-help@r-project.org
>  > Subject: Re: [ESS] uncomment no longer working
>
>  >>> Chris Howden on Fri, 15 Nov 2013 10:01:37 +1100 wrote:
>
>  > [...]
>
>  >> comment-region-default: Wrong number of arguments: (lambda (beg end)
>  > "Like  > `comment-region' invoked with a C-u prefix arg." (interactive
>  > "r")  > (comment-region beg end -1)), 3
>
>  > Your functions redefines a builtin uncomment-region with only 2
> arguments
>  > instead of 3. Why would you do that? Just remove your definition and it
>  > should be fine.
>
>  > Otherwise, if you insist on defining your own, name it differently or
> add
>  > an optional 3rd argument.
>
>  >    Vitalie
>
> ______________________________________________
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

	[[alternative HTML version deleted]]

