From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: Editing comments Date: Sun, 07 Jun 2015 19:33:57 +0200 Message-ID: <55748085.30602@easy-emacs.de> References: <87sia525d8.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1433698464 14350 80.91.229.3 (7 Jun 2015 17:34:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Jun 2015 17:34:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Robert Thorpe Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 07 19:34:15 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 1Z1eSc-0005gO-QJ for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Jun 2015 19:34:15 +0200 Original-Received: from localhost ([::1]:54804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1eSb-0003sH-V4 for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Jun 2015 13:34:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1eSS-0003s2-19 for help-gnu-emacs@gnu.org; Sun, 07 Jun 2015 13:34:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1eSO-0000TK-J0 for help-gnu-emacs@gnu.org; Sun, 07 Jun 2015 13:34:03 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.13]:53533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1eSO-0000TE-AG for help-gnu-emacs@gnu.org; Sun, 07 Jun 2015 13:34:00 -0400 Original-Received: from [192.168.178.31] ([77.12.67.65]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MKaKl-1Z1Ns93WyN-001wWM; Sun, 07 Jun 2015 19:33:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <87sia525d8.fsf@robertthorpeconsulting.com> X-Provags-ID: V03:K0:maYy3qKypCf2CWoxm+qvqCXxDBWR7T9PovRVAoL/ljp6xwmuxvm 6ymePlyIg8YSr1kv3L3gD9kmCGfLw9+gKVahXdjaAeANEbFZiKYcooQg3piJPJNAIaziEJ/ LSJA3LRDm6CxYCjq+3vKhlgo9+3p1S07AMKW22UpGSSj7aTrb62h8uBG/hPAGr5hiOVtit+ sfDRHSOLh+5vGsqvKo04g== X-UI-Out-Filterresults: notjunk:1;V01:K0:zmbuVo6/mAY=:eLLVfjj7YRNlDe8QXZ2AIs iHNEVv7K5xSw7NviW1A9qEccM2bRf8UEQTavM6MD7DiHZ/OJNPq+UYOQPNbBSeAah7LrHkr/c 0GcMaqvGIbsPttHkw0WQ9RZyeUVyz+HGSMs0UsE7OxxYmgV2nkcMpd9/CytyTPfqI2KfvfKZR 0QPlwtiXVBMNjABjvUXs+atWIqDeE6K4z1fs+eeRxG8b+JdUcWwHQdLiDmjtb4h1N2hVrl0qD S4AUclZunuHdKzQ31MAgc/3UMBWBY+up4oN5aooL9e1wcwE7TuhIlvOiU1yqwY3p2ZjfzsomY auLapPGevR7eU5lYxAIjlvxHmbMjQeaHpCp6CD2gJb3XDUoivy7G9SSxZc1jesXEH45N+h5iG mbyOqk/SBv6WUAGdBRo+ON+D93QW+QfcNv0M+Hqj374R8zMjTONjM7WZ3DX/XmVcB6Xxsd+Oe eOf7WCfAB3G6LLrArju0xsFzAJcG6cUbbdTDOThuvTfWqEP/jQmVgA3VQlmJEvxeAClp7W6WQ UFV6nGinFBqX/1xeCtZ0GDlnWGeLdJoiTO1+ofb8QmcoUVng9sRE0IFta7N1abGKr5ECfj9R0 L+bJlcSMjmBJePszsX2IDJJEUNfELlA90aPxNZRadrKFqD+B5y/iyP+mNFIvo2FzRRYjcMbKe YpYgslAcqxJH4PCJRgN52Of1t8fBDUbScNCH0udNpdeI2lg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.13 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:104812 Archived-At: Am 05.06.2015 um 23:49 schrieb Robert Thorpe: > Andreas Röhler 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