Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] add-zle-hook-widget
- X-seq: zsh-workers 38682
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] add-zle-hook-widget
- Date: Tue, 14 Jun 2016 14:06:34 -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=9lSEjIRAkqqxx83pQY8Xbcs/4eisP7ZZ3i8oupBg8q8=; b=NzLrXF41uWrPHnswA5ky2VDHswZe0iaNMQSFtycOWs4ySGLOBVGtFhxAHORxIVSFYk on5hZlM4tuR6FGw4V6FhlQvrQZY1z2L7v2+NX8+WShksimeUOBOaBxyq1nZ5zC/TWvTj 6ULVPBwMgv+ygA0Yvx0jcMHBPLKhrRKk6xWQe8Aw6JF7p95VmsR1uwmzCS02496q8lbm ERjYqtzvLnKaZguUeOqz3DZk8O3x8uSQd9HMbkud+/ThAofE1gtiF4g8He9h4okxNNjU WZdFSLptWoF4Anm3v9dSjIs9aM22Ovu2Njtp6rQBy6FOG69ZC+pfrvgWSe+oRjG3uJgN B0MQ==
- In-reply-to: <160614111054.ZM17893@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: <160612184453.ZM11316@torch.brasslantern.com> <20160613085219.GA23148@tarsus.local2> <160614111054.ZM17893@torch.brasslantern.com>
On Jun 14, 11:10am, Bart Schaefer wrote:
}
} On Jun 13, 8:52am, Daniel Shahaf wrote:
} } What happens when a zle-line-init already exists when add-zle-hook-widget
} } is first called? I had such a hook and it was simply discarded. Should
} } add-z-h-w warn that it is overwriting/redefining an existing hook?
}
} Hmm, how did that happen? The test for [[ -z "${widgets[$fn]}" ]]
Two thinkos:
(1) I meant [[ -z "${widgets[$hook]}" ]]
(2) but that doesn't stop a *function* named $hook from being replaced,
which is probably what you meant.
Yes, something should be done about that.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author