Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: add-zle-hook-widget: infinite recursion ("job table full or recursion limit exceeded")
- X-seq: zsh-workers 39133
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: add-zle-hook-widget: infinite recursion ("job table full or recursion limit exceeded")
- Date: Wed, 31 Aug 2016 02:22:22 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=MhjHuBoIcQwsXNr1zgw1PWYk4XE=; b=b3I6i0 ZVYj+WnnYV/6bs1mqZUOuFj2Gs/yE3U99FVrdjw4xnV1K8LqsA3R04w/DD845wpj IQnhWIQ1XOGWyOkrS+03o7+i3OOSl4oyQ5k4PT2YbKpUPsN5hzEy4euWbB3/18B5 WD4e17NMjucxpGcAz4iKjun7huDcjZxrxboYM=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=MhjHuBoIcQwsXNr1zgw1PWYk4XE=; b=ELK/u Ne147xgYQ3xIq0lEnYpjkaJ9lyYuCRlIa3gy2Bk6RbjkOpI2WAwFkqMYOrAXK3NM nilKc8nuARh1nLD4p2U7QhCG8/tIoR9e8MQHhBaHSUcC7k0GS37buDRo0wsoKHQL dmUtvvVXiItvjwFOwn+lfkn4XXGGlv6upIwHrI=
- In-reply-to: <160830163138.ZM26309@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160830172302.GA16145@fujitsu.shahaf.local2> <160830163138.ZM26309@torch.brasslantern.com>
Bart Schaefer wrote on Tue, Aug 30, 2016 at 16:31:38 -0700:
> Need to move the sanity checks out of the anonymous function.
Thanks, this fixes the problem.
I suppose an error message couldn't hurt:
diff --git Functions/Misc/add-zle-hook-widget Functions/Misc/add-zle-hook-widget
index 572de25..f45bec2 100644
--- Functions/Misc/add-zle-hook-widget
+++ Functions/Misc/add-zle-hook-widget
@@ -19,5 +19,8 @@
# This is probably more safeguarding than necessary
-zmodload -e zsh/zle || return 1
+zmodload -e zsh/zle || {
+ print -u2 "add-zle-hook-widget: zle is not present in this shell"
+ return 1
+}
{ zmodload zsh/parameter && zmodload zsh/zleparameter } || {
print -u2 "add-zle-hook-widget: Need parameter modules for zle hooks"
return 1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author