zsh-users
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: "Raymond W. Ko" <raymond.w.ko@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Possible bug with bindkey and Unicode characters in 5.2?
Date: Mon, 7 Dec 2015 23:29:41 +0100	[thread overview]
Message-ID: <CAHYJk3TNX1evyuGFRrkj4CeCMBCW4__WYY68zoufsrbFXSLUPw@mail.gmail.com> (raw)
In-Reply-To: <5665F054.9070705@gmail.com>

On Mon, Dec 7, 2015 at 9:47 PM, Raymond W. Ko <raymond.w.ko@gmail.com> wrote:
> Hello, I am using Arch Linux, and zsh 5.2 recently landed in stable. I then
> discovered that some of my bindkeys with Unicode characters broke. I am
> basically using http://oremacs.com/2015/02/14/semi-xmodmap/ to generate
> unicode characters, but that should not be relevant.
>
> Here is the relevant part of my .zshrc:
>
> 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. I have tested
> this on mintty, xterm and urxvt, and Linux and Cygwin, so I don't think this
> is terminal specific. Any ideas? Downgrading back to 5.1 works for now.

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


You'd need to revert both
8a818381cfa843f6bdc25e3517500da31d63c282
e1c0a947cc845c71dd844db44016d07922cfcefa
and then it works fine again. I'll also note that pasting multibyte
text still works with my simple bracketed-paste-url-magic widget with
those commits reverted.

-- 
Mikael Magnusson


  reply	other threads:[~2015-12-07 22:29 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 [this message]
2015-12-08  9:47   ` Peter Stephenson
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=CAHYJk3TNX1evyuGFRrkj4CeCMBCW4__WYY68zoufsrbFXSLUPw@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=raymond.w.ko@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).