From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Where to start debugging zle recursive-edit? / Ctrl-C
Date: Sat, 24 Sep 2016 22:58:19 +0200 [thread overview]
Message-ID: <CAKc7PVCKsJRyCLy62_WwQqA1iXvRQumKxW1ASinU8pCXoT7SuA@mail.gmail.com> (raw)
In-Reply-To: <160924133140.ZM29034@torch.brasslantern.com>
On 24 September 2016 at 22:31, Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Sep 23, 6:26pm, Sebastian Gniazdowski wrote:
> }
> } I use a POSTDISPLAY interface for Ctrl-R, that works inside
> } .zle-recursive edit. Occurring problems with Ctrl-C every day.
> } [...] Funny that it became much more intensive after adding
> } few custom keymap's bindings for left/right cursors
>
> This probably means that the ^C is arriving while zle is waiting
> to see if a binding has multiple "keystrokes" before determining
> what widget to call.
That would explain what at first glance looks surprising.
> Does emacs mode vs. viins or vicmd matter? Does (un)setopt multibyte?
I create custom keymap from emac's:
https://github.com/psprint/history-search-multi-word/blob/master/history-search-multi-word#L155
Rather hard to test viins and vicmd? Might try with multibyte when I
spot this happening and repeating. And one session now had this. Doing
unsetopt multibyte stopped this, restoring the option didn't cause the
issue to come back.
> } Also one user reports that Ctrl-C crashes Zsh.
>
> If this is with the latest build from git, it might be related to
> the recently-introduced signal-handling problem with functions that
> Daniel and I have been discussing elsewhere.
It's 5.1.1, and I've tested rather identical setup in coincidence:
https://github.com/psprint/history-search-multi-word/issues/2
Proposed a possible fix but user didn't respond if it helped:
- bindkey -N zhcw main
+ bindkey -N zhcw emacs
> } Would add a debug print somewhere and observe, then extend the
> } debugging. But where?
>
> You're probably interested in getbyte() in zle_main.c, but you might
> also attach with a debugger and put a breakpoint in zhandler so you
> can get a stack trace of where the handler is being called [if it is].
> (Starting the debugger first and running zsh inside it won't work as
> well because the debugger itself will trap the signals).
Thanks, will sure get on that tomorrow. I also sometimes get crashes.
Terminal window closes. Any tips for generating coredumps on OS X? I'm
able to google that when will have time, but also wanted to disable
-O, and ./configure --help | grep -i opt didn't show any option.
Best regards,
Sebastian Gniazdowski
next prev parent reply other threads:[~2016-09-24 20:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-23 16:26 Sebastian Gniazdowski
2016-09-24 20:31 ` Bart Schaefer
2016-09-24 20:58 ` Sebastian Gniazdowski [this message]
2016-09-25 7:09 ` Daniel Shahaf
2016-09-26 22:16 ` Sebastian Gniazdowski
2016-09-27 16:09 ` Bart Schaefer
2016-09-29 9:30 ` Sebastian Gniazdowski
2016-09-29 17:07 ` Bart Schaefer
2016-09-30 9:04 ` Sebastian Gniazdowski
2016-09-30 11:28 ` Sebastian Gniazdowski
2016-09-30 13:30 ` Sebastian Gniazdowski
2016-09-30 20:44 ` Bart Schaefer
2016-10-02 16:26 ` Sebastian Gniazdowski
2016-10-02 17:37 ` Sebastian Gniazdowski
2016-10-05 5:31 ` Sebastian Gniazdowski
2016-10-05 6:14 ` Bart Schaefer
2016-10-05 10:27 ` Sebastian Gniazdowski
2016-10-05 18:31 ` Bart Schaefer
2016-10-05 20:36 ` Sebastian Gniazdowski
2016-09-30 21:45 ` Bart Schaefer
2016-09-30 21:54 ` Sebastian Gniazdowski
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=CAKc7PVCKsJRyCLy62_WwQqA1iXvRQumKxW1ASinU8pCXoT7SuA@mail.gmail.com \
--to=sgniazdowski@gmail.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@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).