From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.devel Subject: Re: awesome feature (yet to be added?) Date: Mon, 5 May 2014 22:32:07 -0400 Message-ID: References: <112075085.1028629.1399142864865.open-xchange@email.1and1.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1399414065 32203 80.91.229.3 (6 May 2014 22:07:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 May 2014 22:07:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Bric Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 07 00:07:40 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 1WhnR7-0002FQ-HM for ged-emacs-devel@m.gmane.org; Wed, 07 May 2014 00:02:05 +0200 Original-Received: from localhost ([::1]:60787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhVB0-0003e6-DV for ged-emacs-devel@m.gmane.org; Mon, 05 May 2014 22:32:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhVAx-0003dZ-1J for emacs-devel@gnu.org; Mon, 05 May 2014 22:32:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhVAv-0005Z2-VN for emacs-devel@gnu.org; Mon, 05 May 2014 22:32:10 -0400 Original-Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:37906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhVAv-0005XT-OR for emacs-devel@gnu.org; Mon, 05 May 2014 22:32:09 -0400 Original-Received: by mail-we0-f170.google.com with SMTP id u57so1832193wes.1 for ; Mon, 05 May 2014 19:32:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+KKjAYvWR3d/Q3YDesie7xV4Uf79QKxcXli/+0FcJjY=; b=VJUNiMQokPfpPUYZqxxjxbQm2ES6rOnycn9/hemKEVPYISDFgrwLYmJVT2Gz3THILK fszyKfe/v9ie1/tn0vIjNC3sBUUIsTBnVjvoX5+8bmM3lfjp6qYTybDiaegej/tOuXDn 5cjMJSpn9mYCZ7e+Q/5aa8PMBKI2WO/ZZum80YyY0JB09YOPa7VFicDI0B1pEdSTblRo OiNmZ2MOgBgamlyDSXCwYMn+B1I+zxLgF1DYbkoZDNs1V3UQM5ufP94/P1XYNillnE7B Obqo7wpXTqz94DhSIJa6pFxGp0ALl2K07p5AnN7a+GKCPBN3JWSm6b8O19L8wwIpJuB7 i0jw== X-Received: by 10.194.188.68 with SMTP id fy4mr30155721wjc.30.1399343527974; Mon, 05 May 2014 19:32:07 -0700 (PDT) Original-Received: by 10.216.157.200 with HTTP; Mon, 5 May 2014 19:32:07 -0700 (PDT) In-Reply-To: <112075085.1028629.1399142864865.open-xchange@email.1and1.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22a 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:171721 Archived-At: I made this: https://github.com/lewang/try-code The idea is developed a little further than what you propose. I decorate the code with markers so it's easy to choose the new or old code. Judging by the uptake. We are the only two to think this is useful. :) On Sat, May 3, 2014 at 2:47 PM, Bric wrote: > Hi, all > > unless it already exists, I thought of an awesome time-saving command: > invert-comment > > this to be on a par with "comment-region" and "uncomment-region". > > "invert-comment" would change something like this : > > /* int b_progress; */ > /* int i_seek; */ > /* hnd_t hin; */ > /* hnd_t hout; */ > > int c_progress; > int j_seek; > hnd_e hin; > hnd_f hout; > > > to: > > > int b_progress; > int i_seek; > hnd_t hin; > hnd_t hout; > > /* int c_progress; */ > /* int j_seek; */ > /* hnd_e hin; */ > /* 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! > -- Le