From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: argument swap elisp function? Date: Fri, 26 Aug 2011 00:42:18 +0530 Message-ID: <81zkixqp9p.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314299611 3906 80.91.229.12 (25 Aug 2011 19:13:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Aug 2011 19:13:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: fork Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 25 21:13:27 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QwfMl-0000WC-4u for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Aug 2011 21:13:27 +0200 Original-Received: from localhost ([::1]:53811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwfMk-0004GT-Cs for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Aug 2011 15:13:26 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwfMf-0004GD-OX for help-gnu-emacs@gnu.org; Thu, 25 Aug 2011 15:13:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwfMe-0003EG-Pp for help-gnu-emacs@gnu.org; Thu, 25 Aug 2011 15:13:21 -0400 Original-Received: from mail-pz0-f44.google.com ([209.85.210.44]:35399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwfMe-0003EC-JW for help-gnu-emacs@gnu.org; Thu, 25 Aug 2011 15:13:20 -0400 Original-Received: by pzk36 with SMTP id 36so3512382pzk.17 for ; Thu, 25 Aug 2011 12:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=hU9Rzsp4CFzB/CmVQraDJwjDWOvVebztBG4nSgnlEbA=; b=E8TGzGdwM6l8q9qgloVIges3JZPU6KVzChCpEHEkLVRjXXH25+ff7uAO0aZOL/jwlK TDR3yys9+mYummyCCib63/KJ9NdQzYBsZF0EpKh5lk8K/00yTZIo+8EmDWuHByWoud2r 0O5t89kvwxXI3rkSRT4ArkMg0d0EVgTat6bCc= Original-Received: by 10.142.210.12 with SMTP id i12mr26958wfg.162.1314299599494; Thu, 25 Aug 2011 12:13:19 -0700 (PDT) Original-Received: from JAMBU-NETBOOK ([115.241.42.152]) by mx.google.com with ESMTPS id y5sm908246pbq.12.2011.08.25.12.13.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Aug 2011 12:13:19 -0700 (PDT) In-Reply-To: (fork's message of "Thu, 25 Aug 2011 19:03:15 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.44 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:82067 Archived-At: fork writes: > Perhaps this is available, but I would love a function to swap arguments around > a comma (really an arbitrary split pattern), like this: > > "foo, 123" gets mapped to "123, foo" M-t with cursor on say the comma or space works. You can do more R&D with C-h k M-t > > Have any intrepid elisp hackers put something like this together? > > Thanks! > > > --