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.1 (2015-04-28) 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.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1460042737; bh=mnYAaI/xBJLWR2Aefu0Gd5sLUt9O/5SxjAWY3h2bohY=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=ohBuDfEbG0ULG12d+2Zds+mPd3doNNScSTQ0klJVdcFc0Vj1KeauyLRK0QfSaL8n0eEYB7PCh51llWVpM22FAhs1GsxykMQguqhp3nZG/Fyf6lZKUoAGa/gqLpyK6OstvWBatE9un5M8IlewAh9SiUHc7UU7ugUUY/rPrHoxkyPDydaVxiLxDMa++C/z0ezSrH9FGacIcCtKvHmiE+Bw74K58ORy3zSrbuaHz0v1+8w4//3T9BzDp2AEotu5qGLsd/YNP6uzjLE3d5yOX3+en2lTgpAvZ9PAuGDl674odmhGtU4lla3CsnEG1bFqm3mo4ebJLDhyDrWZfpVYKDoLVQ==
X-Yahoo-Newman-Id: 376346.86596.bm@smtp119.mail.ir2.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: DGuZRuIVM1n7eEshEnnhYZTGhALCfD0tGU9V7UcSBpCTFk9
 wnJRz2co0T6UptJ1IlNPmWq3khHihqR.R9XWQOO_HgIaoNlknWXMGUpUBB5h
 tmgGklEoc9KxDTyZcKiY3GJjrnDRKuLaxIzoACVsavQJbgdOc7ugo1tF61ij
 AhW.6_742Y_dsLHsVZpKfv6P_AhJ8XbzeyftZoHT6p7QFhbatNehbEDPXChZ
 DcvcTMG.CZ6zuZCgem7EoHMomE8XbGklXbV5y0SfxkPC_4_R5k.D6nTF_Fqz
 ndTzv5Bv1XOw3aSHSheSYLQ27Bi2MV5NR70P0Glrscrzfu8R._tXFcblfWdC
 Xc3zqay5lyHbHxJTiUSl3sVrSaWnNP1YxnlZgLiTJLaBSWtunefN.T2c9OFF
 _DclSfLO_Jdbn7POTQSHP5yubaiiFM__iwI2SazhOAm2cWS_l.GH85dl4WHE
 Dm.Sg4TaRj8dxYk2zIMN9TnPWf6prQ8TSsgjdGzFdDpSrNRlP0yflBb26SRt
 rvfS5QnO2InC3QbO2z6SD2SBBQCc-
X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI-
In-reply-to: <CAHYJk3Q6aWvDL1nkcv0Ar9DSnwP2+i3Ze3DxdjDtVE3ttttymA@mail.gmail.com>
From: Oliver Kiddle <okiddle@yahoo.co.uk>
References: <1459658514-24610-1-git-send-email-mikachu@gmail.com> <24571.1459953207@thecus.kiddle.eu> <CAHYJk3Q6aWvDL1nkcv0Ar9DSnwP2+i3Ze3DxdjDtVE3ttttymA@mail.gmail.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: PATCH: Add SHORT_KEYBIND_DISCARD option
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <28147.1460042736.1@thecus.kiddle.eu>
Date: Thu, 07 Apr 2016 17:25:36 +0200
Message-ID: <28148.1460042736@thecus.kiddle.eu>
X-Seq: zsh-workers 38251

Mikael Magnusson wrote:
> > Didn't we discuss this issue a few months ago - have you perhaps got a
> > message reference?

I managed to find this again: users/20358 is a good reference where Bart
makes the point that this will have unpredictable effects for an unbound
function key. Some of the thread is in -workers.

We could make discarding the keys conditional upon whether KEYTIMEOUT
has elapsed since the prefix was received to account for that, however.

> I think I asked if doing what this patch does was possible, but I want
> it in general, not only because of bracketed-paste. If it were up to
> me, this way would be the only way. It doesn't really make any sense
> to me why we arbitrarily eat input just because it was a potential
> common prefix that then turned out to not be part of any actual
> keybinding. But since zsh people tend to like their things not
> changing, I did the option.

If get a prefixed key combination wrong, a beep seems cleaner than
getting the latter part inserted. 

> It just seems like a much more correct way of doing it to me.

But is it also proving an irritation in actual practice? Are you often
typing part of a long emacs-style binding and then being distracted by
something in another window, perhaps? Would a separate timeout after
which a prefix is discarded perhaps make sense?

Oliver

