Zsh Mailing List Archive
Messages sorted by:
Re: Where to start debugging zle recursive-edit? / Ctrl-C
- X-seq: zsh-workers 39527
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Where to start debugging zle recursive-edit? / Ctrl-C
- Date: Fri, 30 Sep 2016 13:44:46 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=EVPGotEWGHrLhNG+ayH93qY9WypxZc2G42iZZW0D2bc=; b=05Jt6oc7SnTYNSNcwpxRfuCQW/hE+5mUyqpUSH1nVO1WwmjQ4UxEGvfDia5+u0U3GA 1h5SXK9Hy+7dkUeFGf52vfL3JkiIdcz0dQJmSVnoXJqxBua7E4yq39jVSqsOwb4qzXWl /4WbUjMeVUfKJoAaIC6mUWhC5mLDUIBZFwerFUjc3ZHjDcK1G0pS28BOo6M+Vlklryao rwYQsrSNkkp5t4LQHtt5YX1qja3ZL4IUMCNCH58n0BJZ4RKFV3tFx97YM9w6hPPCqKsq KPP1lYqkfa/F6bIsY+w+EY03AccPM3GHUJASODJ8uwDYAGZVHF7HkBcM8vaXMhS14gql hT4Q==
- In-reply-to: <CAKc7PVCEbqF7KudsZDEadTM4988Ega3dFS7cEPCcYv=mNfntLg@mail.gmail.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBvm+u5QQQZo+6QEQw4bRHx1br5K-A6y_6pAuP8+KCbcQ@mail.gmail.com> <160924133140.ZM29034@torch.brasslantern.com> <CAKc7PVCvear=ZCOYB+ODYcw+qV8YGbcsLH_arXCFdNMRgJ4O2Q@mail.gmail.com> <CAKc7PVCEbqF7KudsZDEadTM4988Ega3dFS7cEPCcYv=mNfntLg@mail.gmail.com>
On Sep 30, 3:30pm, Sebastian Gniazdowski wrote:
} So, the linked list doesn't have any elements, and calc_timeout()
} exits with ZTM_NONE instead of ZTM_FUNC
If I recall correctly how this is architected ...
This must mean that you are interrupting the scheduled function itself,
before it has a chance to execute "sched" and reset its timer.
Because you are in recursive-edit, interrupting does not go all they
way back to the top-level prompt where the precmd hook would restore
the timer, so it remains unscheduled until the current zle session
is done and precmd runs again.
You may need to find a more aggressive place to reset the timer, such
as in the zle-line-pre-redraw hook, or else create a wrapper widget
Either way you'd want to examine $zle_scheduled_events to see if the
timer is still pending, before scheduling it again.
Or possibly you could switch from doing this with a timer scheduled
function to using a "zle -F" handler function.
Messages sorted by: