zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Mikael Magnusson <mikachu@gmail.com>,
	Zsh Users' List <zsh-users@zsh.org>
Subject: Re: Possible bug with bindkey and Unicode characters in 5.2?
Date: Tue, 08 Dec 2015 09:47:02 +0000	[thread overview]
Message-ID: <20151208094702.67d0b830@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <CAHYJk3TNX1evyuGFRrkj4CeCMBCW4__WYY68zoufsrbFXSLUPw@mail.gmail.com>

On Mon, 07 Dec 2015 23:29:41 +0100
Mikael Magnusson <mikachu@gmail.com> wrote:
> On Mon, Dec 7, 2015 at 9:47 PM, Raymond W. Ko <raymond.w.ko@gmail.com> wrote:
> > bindkey -s θ '"\C-b"'
> > bindkey -s ω "'\C-b'"
> > bindkey -s υ ">\C-b<"
> > bindkey -s σ "}\C-b{"
> > bindkey -s φ ")\C-b("
> > bindkey -s φ "asdf"
> > bindkey -s ρ "]\C-b["
> >
> > On zsh 5.1 and 5.0.1, this works as expected. However, in 5.2 there seems to
> > be a pause for half a second before a question mark appears.
>
> e1c0a947cc845c71dd844db44016d07922cfcefa is the first bad commit
> commit e1c0a947cc845c71dd844db44016d07922cfcefa
> Author: Peter Stephenson <p.w.stephenson@ntlworld.com>
> Date:   Fri Sep 11 21:40:45 2015 +0100
> 
>     Read full multibyte string early for self-insert

OK, I can reproduce this using the accented chracters.  AltGr-; e gives
me é and if I do

bindkey -s é 'foo'

then typing é has the effect reported.  I'll take a look.  It's not
specific to "-s".  I suspect it's getting the first octet and the second
is going somewhere else.  The change isn't quoted supposed to effect
non-self-insert bindings at all.

pws


  reply	other threads:[~2015-12-08  9:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-07 20:47 Raymond W. Ko
2015-12-07 22:29 ` Mikael Magnusson
2015-12-08  9:47   ` Peter Stephenson [this message]
2015-12-08 10:38 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151208094702.67d0b830@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=mikachu@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).