help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swapping comments and code in the region


From: Xah
Subject: Re: Swapping comments and code in the region
Date: Tue, 9 Sep 2008 14:09:49 -0700 (PDT)
User-agent: G2/1.0

On Aug 22, 4:44 pm, Nick Sandow <njs...@internode.on.net> wrote:
> Hi,
>
> I think it would be handy to have a function that made comments into
> code, and code into comments.
>
> That is, if the region consisted of the following 2 lines:
>
> foo();
> // bar();
>
> ...they would become:
>
> // foo();
> bar();
>
> Does anyone know of a package or command out there that does this?
>
> Thanks

there's comment-or-uncomment-region, which behaves not exactly as you
described but similar.

  Xah
∑ http://xahlee.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]