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

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

Re: Editing comments


From: Andreas Röhler
Subject: Re: Editing comments
Date: Sun, 07 Jun 2015 19:33:57 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


Am 05.06.2015 um 23:49 schrieb Robert Thorpe:
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

Thanks. IMO that's worth a minor-mode like wdired.

That would reduce needed keystrokes towards two - while marking comments already may cost severals.

Cheers,

Andreas




reply via email to

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