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

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

Re: Editing comments


From: Robert Thorpe
Subject: Re: Editing comments
Date: Fri, 05 Jun 2015 22:49:07 +0100

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> commented code might need some edits too. In that case some basic 
> commands like forward-sexp are not available.
>
> Is there a minor-mode, un-commenting temporarily, writing back the result?

What I do in this situation is I first mark the commented region.  I
then narrow to the region, then uncomment it, after that I widen.

So, something like:
* C-SPC
* M-} or M-C-f, etc
* C-x n n
* M-;
* Edit
* C-x h
* M-;
* C-x n w

There is probably a better way.

BR,
Rob



reply via email to

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