From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Transposing words over middle words Date: Fri, 17 Nov 2017 09:19:58 +0200 Message-ID: <83a7zlid7l.fsf@gnu.org> References: <86efoxvn8i.fsf@verizon.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1510903264 25510 195.159.176.226 (17 Nov 2017 07:21:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Nov 2017 07:21:04 +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 Nov 17 08:21:01 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFaxP-0006Fl-N5 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Nov 2017 08:20:59 +0100 Original-Received: from localhost ([::1]:44262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFaxW-00088c-RO for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Nov 2017 02:21:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFawh-00086W-Sl for help-gnu-emacs@gnu.org; Fri, 17 Nov 2017 02:20:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFawd-0002pK-Tp for help-gnu-emacs@gnu.org; Fri, 17 Nov 2017 02:20:15 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFawd-0002pB-RO for help-gnu-emacs@gnu.org; Fri, 17 Nov 2017 02:20:11 -0500 Original-Received: from [176.228.60.248] (port=2699 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eFawd-0000um-EK for help-gnu-emacs@gnu.org; Fri, 17 Nov 2017 02:20:11 -0500 In-reply-to: <86efoxvn8i.fsf@verizon.net> (joe_f@verizon.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:114927 Archived-At: > From: joe_f@verizon.net (Joseph C. Fineman) > Date: Thu, 16 Nov 2017 18:05:01 -0500 > > I think that, rather than expending cleverness on that particular > problem, and then trying to remember the result, I would write a command > that solved a more general problem & would be easy to remember. Namely, > after I set the mark successively at the beginning and end of a passage, > and then at the beginning of another passage, and then going to the end > of the latter passage, it would, on being called, exchange the former > with the latter passage (using the mark ring). Isn't that what the zero argument to M-t already does?