From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Sandow Newsgroups: gmane.emacs.help Subject: Swapping comments and code in the region Date: Fri, 22 Aug 2008 16:44:16 -0700 Message-ID: <48AF4F50.5070008@internode.on.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219387468 22705 80.91.229.12 (22 Aug 2008 06:44:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2008 06:44:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 22 08:45:21 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KWQOe-0001Ys-De for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Aug 2008 08:45:20 +0200 Original-Received: from localhost ([127.0.0.1]:47770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWQNg-0001WN-O8 for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Aug 2008 02:44:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWQNM-0001Vw-Sj for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 02:44:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWQNL-0001V3-QH for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 02:44:00 -0400 Original-Received: from [199.232.76.173] (port=50304 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWQNL-0001Us-NC for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 02:43:59 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:40419) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KWQNL-0005o9-5e for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 02:43:59 -0400 Original-Received: from ipmail04.adl2.internode.on.net ([203.16.214.57]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWQNG-0004gQ-SD for help-gnu-emacs@gnu.org; Fri, 22 Aug 2008 02:43:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmIBAHz6rUg7p1MD/2dsb2JhbAAIMbYFgWg X-IronPort-AV: E=Sophos;i="4.32,250,1217773800"; d="scan'208";a="191017839" Original-Received: from ppp59-167-83-3.lns2.mel6.internode.on.net (HELO [192.168.4.105]) ([59.167.83.3]) by ipmail04.adl2.internode.on.net with ESMTP; 22 Aug 2008 16:13:41 +0930 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) X-detected-kernel: by mx20.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56877 Archived-At: Hi, I think it would be handy to have a function that made comments into code, and code into comments. That is, if the region consisted of the following 2 lines: foo(); // bar(); ...they would become: // foo(); bar(); Does anyone know of a package or command out there that does this? Thanks