From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Transposing words over middle words Date: Thu, 16 Nov 2017 09:41:50 +0100 Message-ID: <87efoy8vjl.fsf@fastmail.fm> References: <871skywvp4.fsf@hornfels.zedat.fu-berlin.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1510821758 4746 195.159.176.226 (16 Nov 2017 08:42:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Nov 2017 08:42:38 +0000 (UTC) User-Agent: mu4e 1.0-alpha0; emacs 25.3.50.1 Cc: help-gnu-emacs@gnu.org To: Loris Bennett Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 16 09:42:28 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 1eFFkh-0000Qw-9o for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Nov 2017 09:42:27 +0100 Original-Received: from localhost ([::1]:39563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFFkn-00079G-34 for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Nov 2017 03:42:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFFkK-00079B-VW for help-gnu-emacs@gnu.org; Thu, 16 Nov 2017 03:42:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFFkH-0002en-SU for help-gnu-emacs@gnu.org; Thu, 16 Nov 2017 03:42:05 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:52043) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eFFkH-0002d9-J0 for help-gnu-emacs@gnu.org; Thu, 16 Nov 2017 03:42:01 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0FBCB211C8; Thu, 16 Nov 2017 03:41:57 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 16 Nov 2017 03:41:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=joSx8lU0ZzjbVf2sYZJ0obVJjXpzSn3NdEqpdNnVioo=; b=mTaMYcEy Mdj94sBT2xrYYHBm9F8O4gVogn5erG928I7qYlRGZrfZhQ85b1pGrkol+/AW6mGw zjqxx0H9V8cmK2Ab5uYg9nQl1psXzSxMXsEzcqf8C/D3KvbLTTjjhz7bps3Yx9J6 OTxZSeeCYMng+TOvRd+E57ceLt7MNVylv2qpFbeJ3q7S424qp00HOHWX+gxGw1Cy JnRE9X4S/e9nKAh2JIwJFfRF8Fpomi9efnWyf1tXME2T1VF9ZLPeMa7D20wlVs6y +VA0Oik7zqXbJMfKAAh9vEs5YWutpKfxhMKOelokuXHmrcHzNjfkadxEdC/TdL8+ bBzUhIdlrb78vQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=joSx8lU0ZzjbVf2sYZJ0obVJjXpzS n3NdEqpdNnVioo=; b=PNvynN/E5erkiDw6EKPdCCgjwmBaq9JxMM0ySM0Io9ZhH 0XE92jNTKiegVAd4nXqSyc4uIhU3DPNi3+uJRBokZ+CtU1UQVZrMEnkrbDm0RnrN KhBlnzrnnF4KPfmaOT9LpH23yODvEcdcjsU0lrXwaxt3X/Z/1AQD6MP/P54+S6mo duijCz7BItzxFQPOwE0ZoQkxOW9/b6KeiBgHTDLs47bjux4gr4FC90Pn5zKcQaHr /bpfuqj63eleXmh7hBy/O3naR+DdzKXdJpsC5hq576tgoefINuoPM6pz0fPwerwP bVDdKxSCvF4RCYDkS/PJoXCEcr6p4d0cpmHsYTdSg== X-ME-Sender: Original-Received: from IdeaPad.fastmail.com (wlan-30-105.eduroam.uni-wuppertal.de [132.195.30.105]) by mail.messagingengine.com (Postfix) with ESMTPA id 7916A245E3; Thu, 16 Nov 2017 03:41:56 -0500 (EST) In-reply-to: <871skywvp4.fsf@hornfels.zedat.fu-berlin.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.28 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:114897 Archived-At: On Thu, Nov 16 2017, Loris Bennett wrote: > Assuming I'm at the end of the three words where the > transposition > should take place, I usually do > > Jack and Jill went up the hill. > ^ point is here: M-b > Jack and Jill went up the hill. > ^ point is here: M-t > Jack Jill and went up the hill. > ^ point is here: M-b M-b > Jack Jill and went up the hill. > ^ point is here: M-t M-t > Jill and Jack went up the hill. > > It seems moderately elegant to me, because it involves a fairly > simple > ordering of only two different functions. Having said that, I > don't do > it that regularly and so still often screw it up. There is a slightly quicker way of doing it (with | indicating point): Jack |and Jill went up the hill. M-2 M-t and Jill Jack| went up the hill. M-2 M-b (or M-b M-b) and |Jill Jack went up the hill. M-t Jill and Jack went up the hill. But yeah, I've also been in the situation where I wished there were a function 'transpose two words while pretending the word point is on isn't there'... -- Joost Kremers Life has its moments