zsh-users
 help / color / mirror / code / Atom feed
From: Andy Spiegl <zsh.Andy@spiegl.de>
To: zsh-users@zsh.org
Subject: Re: How can I debug lost keyboard input?
Date: Wed, 19 Sep 2018 20:27:33 +0200	[thread overview]
Message-ID: <20180919182732.6h4ytozjg4vt2bud@spiegl.de> (raw)
In-Reply-To: <20180912184227.yahwsdnwfddtqv3m@spiegl.de>

> Any ideas how I can debug this?
Unfortunately I still don't know a good way to debug problems like that.
This time, I found the solution by reading zsh man pages over and over. :-)

> BTW if I bind the functions to a different key the same thing happens.
> Uhm, as if the function would have to be loaded/initialized on the first try?

Turned out to be exactly that.  On the first call the function file is
loaded and the function initialized but NOT executed.  So, I added the line
"zle finer-forward-word" at the end of the function file - after the
function definition.  And now it works as expected again.  zsh's default
behavior of this must have changed recently, right?

--------
finer-forward-word() {
  local WORDCHARS=$WORDCHARS_FINER
  zle forward-word
}
zle finer-forward-word
--------

But is that the "correct" way to do it or just a dumb workaround?

Thanks,
 Andy

-- 
 The typewriting machine, when played with expression, is no more
 annoying than the piano when played by a sister or near relation.
   (Oscar Wilde)

  reply	other threads:[~2018-09-19 18:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-12 18:42 Andy Spiegl
2018-09-19 18:27 ` Andy Spiegl [this message]
2018-09-19 19:42   ` Jérémie Roquet
2018-09-20  9:47     ` Andy Spiegl
2018-09-20 10:10   ` Mikael Magnusson
2018-09-20 10:19     ` Andy Spiegl

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=20180919182732.6h4ytozjg4vt2bud@spiegl.de \
    --to=zsh.andy@spiegl.de \
    --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).