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,FREEMAIL_FROM,
	T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :cc:content-type:content-transfer-encoding;
        bh=gIbmOvg2uojGVPVRGxa//U9M4oFUbUtNhfjjxnUe1vg=;
        b=s0aFpnWSl6AfQng0ZCPy6BcR8q+pSFkENiKpUQfOcaSP8Y3dYQBnGPX2HiyZTOVbF8
         rZzUf5HyPkwtYy9BF1CWpbIjD9kwoWFPDoa42Xzz33LvbIElZDOf3yZK5XyIRowv/3VY
         sLOhsBQ4LZbRUKcRBQIbgEYg5y4MYDPlb3UDviGrJMQb52hRY7bYwtw0PxeuKjvRoSuR
         Pc6+QiYFSpEpc78ckmP/KMXTYuI8Hucv9dqN1UTW2o60lUu2HWl0dEIXXgU/OxKna6cX
         P6Pmwdwz0qza4yqW06+eh2+GdiMY85ulRJNTLrWeCh26FkjDUAUVRVB22zzq3CyN7JbF
         cYPg==
X-Received: by 10.112.77.8 with SMTP id o8mr31896326lbw.53.1452362640490; Sat,
 09 Jan 2016 10:04:00 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <160109094833.ZM3453@torch.brasslantern.com>
References: <CAKc7PVCVFN2639GkbitXO_yZtqK02zUWH-oLGYBysv6J3TreTg@mail.gmail.com>
 <160109092258.ZM3394@torch.brasslantern.com> <160109094833.ZM3453@torch.brasslantern.com>
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date: Sat, 9 Jan 2016 19:03:41 +0100
Message-ID: <CAKc7PVDdF0QHbpseYrZ6FqdAzfLe_iqspQkp1v8nJq3rXqFC2g@mail.gmail.com>
Subject: Re: transpose-words-match (Re: New widget "transpose-segments")
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Seq: zsh-workers 37526

On 9 January 2016 at 18:48, Bart Schaefer <schaefer@brasslantern.com> wrote=
:
> 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".

That's a nice catch, finally a de facto difference between
transpose-words-match and transpose-segments. I tried lines like:

$(( i+1 )) a=3D"${(u)a}" =E8=A9=A6=E5=8F=A5=E7=9B=B8=E7=95=B6=E9=95=B7

and they worked the same. Now it can be seen that what you described
can also occur inside $(( )).

Best regards,
Sebastian Gniazdowski

