From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bric Newsgroups: gmane.emacs.devel Subject: Re: awesome feature (yet to be added?) Date: Sat, 3 May 2014 21:23:37 -0400 (EDT) Message-ID: <660280578.1034380.1399166618013.open-xchange@email.1and1.com> References: <112075085.1028629.1399142864865.open-xchange@email.1and1.com> Reply-To: Bric 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 1399166641 31464 80.91.229.3 (4 May 2014 01:24:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 May 2014 01:24:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 04 03:23:54 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Wgl9l-0006Co-FT for ged-emacs-devel@m.gmane.org; Sun, 04 May 2014 03:23:53 +0200 Original-Received: from localhost ([::1]:51767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wgl9k-0003ks-AU for ged-emacs-devel@m.gmane.org; Sat, 03 May 2014 21:23:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wgl9c-0003kZ-Sx for emacs-devel@gnu.org; Sat, 03 May 2014 21:23:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wgl9X-0003cH-KH for emacs-devel@gnu.org; Sat, 03 May 2014 21:23:44 -0400 Original-Received: from mout.perfora.net ([74.208.4.195]:56614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wgl9X-0003c0-CY for emacs-devel@gnu.org; Sat, 03 May 2014 21:23:39 -0400 Original-Received: from oxuslxltgw00.lxa.perfora.net (oxuslxltgw00.lxa.perfora.net [172.19.206.3]) by mrelay.perfora.net (node=mrus2) with ESMTP (Nemesis) id 0LfkDy-1XEC1o0Alm-00oeG6; Sat, 03 May 2014 21:23:38 -0400 In-Reply-To: <112075085.1028629.1399142864865.open-xchange@email.1and1.com> X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.4.2-Rev18 X-Provags-ID: V02:K0:pHIpR/4/eSnTUfNrfElSeX6qR66NBBAWI045sXW61rJ yWLGciyM2HGgCPfS8cXX5PUCZQo6Q8FGguCko0IXfunbNYDYTQ 9AW1LCWaBnM1evEGf4gnWEu7d21kkbO4r+gf9qkaeinDC0tVH9 7c0BFcHdqctUQoL9mvrBMWs6iveZz1Zisx72gnJbQ9BHT71KNV iCjHihm8sZI/aiy6roamvjPg1zSuXoOdQoYEcSH4fQ/jv+Wb55 ScgT0AG7nUibFJR+Fp32c1rEe1kDFBw44KNKW8RSj4L4lexGKB RUbhlFnwfymilYLXSIhbyBeyipGUlptZDSfIlnck34MarSTa01 sYFamZOjdthjr6UDpI9pT3Fc5yadaLr+wTARvTk59NYgpF/yl8 FqNNxt4MtKAhddM7wnDhWMMLxBj98BuUEm//jB7AZDxUQOR6pn nbIxU X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 74.208.4.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171680 Archived-At: I had some private responses that suggest my original post wasn't too clear= ; i left my main idea obscurely implied: I am suggesting an INVERSION or reversal of whatever commented/uncommented = state of EVERY LINE in the selected region. See my example below:=C2=A0 the before and after states are inverted.=C2=A0= The before state has a commented block then an uncommented block.=C2=A0 My hypothetical command reverses that: the after state has an uncommented b= lock followed by a commented block.=C2=A0 That effect should take place in one c= ommand, with the entire eight lines of code selected a single selected block to whi= ch to apply the command. hope this clarifies it... > On May 3, 2014 at 2:47 PM Bric wrote: > > > Hi, all >=C2=A0 > unless it already exists, I thought of an awesome time-saving command:=C2= =A0 > invert-comment > > this to be on a par with "comment-region" and "uncomment-region". > > "invert-comment" would change something like this : > > =C2=A0 =C2=A0/* int b_progress; */ > =C2=A0 =C2=A0 /* int i_seek; */ > =C2=A0 =C2=A0 /* hnd_t hin; */ > =C2=A0 =C2=A0 /* hnd_t hout; */ > > =C2=A0 =C2=A0 int c_progress; > =C2=A0 =C2=A0 int j_seek; > =C2=A0 =C2=A0 hnd_e hin; > =C2=A0 =C2=A0 hnd_f hout; > > > to: > > > =C2=A0 =C2=A0 int b_progress; > =C2=A0 =C2=A0 int i_seek; > =C2=A0 =C2=A0 hnd_t hin; > =C2=A0 =C2=A0 hnd_t hout; > > =C2=A0 =C2=A0 /* int c_progress; */ > =C2=A0 =C2=A0 /* int j_seek; */ > =C2=A0 =C2=A0 /* hnd_e hin; */ > =C2=A0 =C2=A0 /* hnd_f hout; */ > > > ------------- > > not for all occasions, but can be very useful for some, it seems to me. > > Maybe it's easily added with a scheme script or something. > > thanks! >