Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;
        h=from:message-id:date:in-reply-to:comments:references:to:subject
         :mime-version:content-type;
        bh=aP0X9Legv3xG6mYtFq9EnI8oYpH36Ozi9PPKIOy7Acc=;
        b=bQdi4Qf1G/Jme7hp5Qs/BZ3fmc8HrkeBIqzA0628IgM8MU/DduSKjkywtfT1izVUC/
         bmnu7bHOTHmDDwthK2rKdXywxUgxzx8r7G5dlxhGzftjMc74U+uJ9wtLJFbHDYtsZpa7
         GO656Ws28W2SZ0tVKQZhgxtivlfugJTcU4vC8GmXKMHUiU3umgSAVbHCLa5I80CuyH+3
         iOA4nqwnJ18yg6tLErdUl++CRWlWYblFvakul1CX0n14cJtGYSLKLDj6ewliWVOxQUtp
         iXcCbGPZv20sAMca0nofJbdmsUSIsylpXuMkyWN61aT6Jf0U1pUvSJo9WMm8a2bmrcgS
         U3wg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:in-reply-to:comments
         :references:to:subject:mime-version:content-type;
        bh=aP0X9Legv3xG6mYtFq9EnI8oYpH36Ozi9PPKIOy7Acc=;
        b=LM1aOlEie2aV2z91hQehs8FEwYokKSrh/cVwaWiJ2zfRRBjUpKzU8wY6q2dA3o2+SI
         YqIcSwyC+hrVh8UOvTcB01ya77mRiCsm7q19ceUNyyetWMfm4iuaM2lIGscuzvhJ2hms
         UWn1+ZKmQjk/1MZCENRiJWZLxXsZBLTSUjwUrEfClKUKZUi3O0fZKOShHCggZyew2Q9X
         IRtUtPu/Mmbix4Vu65WJnB/ZP6JnKe5eiKipy79eaHqeNBQbJhmd+JyG3U2D3X5pcPVC
         1/d4QiFDVQ9JFYjzinxzu1PHUyVoQ/yb/txM/ifmncchtdSIz94bijYUodrVHQN/D8fO
         hYAg==
X-Gm-Message-State: ALoCoQlWueOrk4l09JEe7rAED1z+T885LTwydw+cFdJS6I06JN9r3UdCBISoNVLoXPeO1d0fUNAMPaG96wLufjYFL8EsnX1r0Q==
X-Received: by 10.98.32.69 with SMTP id g66mr13860593pfg.20.1452361703695;
        Sat, 09 Jan 2016 09:48:23 -0800 (PST)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160109094833.ZM3453@torch.brasslantern.com>
Date: Sat, 9 Jan 2016 09:48:33 -0800
In-Reply-To: <160109092258.ZM3394@torch.brasslantern.com>
Comments: In reply to Bart Schaefer <schaefer@brasslantern.com>
        "Re: New widget "transpose-segments"" (Jan  9,  9:22am)
References: <CAKc7PVCVFN2639GkbitXO_yZtqK02zUWH-oLGYBysv6J3TreTg@mail.gmail.com> 
	<160109092258.ZM3394@torch.brasslantern.com>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: transpose-words-match (Re: New widget "transpose-segments")
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 37524

On Jan 9,  9:22am, I asked:
}
} How does this differ from
} 
}     zle -N transpose-words transpose-words-match

One difference is that transpose-words-match uses a little more context,
so

    % echo two words<alt-t>

does not transpose because the cursor is not between two words, and

    % echo "two <alt-t>words"
    % echo words" "very 

swaps around the space even though it is in the middle of a "shell word".

(In fact it rather appears as though "-subword" matching has been turned
on implicitly even though I did not name the widget that way; there may
very well be a bug.)

