From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20528 invoked by alias); 9 Jan 2016 18:04:03 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37526 Received: (qmail 28582 invoked from network); 9 Jan 2016 18:04:03 -0000 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: <160109092258.ZM3394@torch.brasslantern.com> <160109094833.ZM3453@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Sat, 9 Jan 2016 19:03:41 +0100 Message-ID: Subject: Re: transpose-words-match (Re: New widget "transpose-segments") To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 9 January 2016 at 18:48, Bart Schaefer 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 > > does not transpose because the cursor is not between two words, and > > % echo "two 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