From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: Editing comments Date: Fri, 05 Jun 2015 22:49:07 +0100 Message-ID: <87sia525d8.fsf@robertthorpeconsulting.com> References: <5571456C.1060807@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1433540994 28832 80.91.229.3 (5 Jun 2015 21:49:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2015 21:49:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andreas =?utf-8?Q?R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 05 23:49:39 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z0zUV-0001Ql-5b for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 23:49:27 +0200 Original-Received: from localhost ([::1]:49739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0zUU-00026c-IM for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jun 2015 17:49:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0zUK-00026L-1J for help-gnu-emacs@gnu.org; Fri, 05 Jun 2015 17:49:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0zUF-0003fw-0I for help-gnu-emacs@gnu.org; Fri, 05 Jun 2015 17:49:15 -0400 Original-Received: from outbound-smtp06.blacknight.com ([81.17.249.39]:44390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0zUE-0003fM-QE for help-gnu-emacs@gnu.org; Fri, 05 Jun 2015 17:49:10 -0400 Original-Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp06.blacknight.com (Postfix) with ESMTPS id B3B5A989F0 for ; Fri, 5 Jun 2015 21:49:09 +0000 (UTC) Original-Received: (qmail 4937 invoked from network); 5 Jun 2015 21:49:09 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.78.244.208]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 5 Jun 2015 21:49:09 -0000 In-Reply-To: <5571456C.1060807@easy-emacs.de> (message from Andreas =?utf-8?Q?R=C3=B6hler?= on Fri, 05 Jun 2015 08:45:00 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.39 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104783 Archived-At: Andreas R=C3=B6hler writes: > commented code might need some edits too. In that case some basic=20 > 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