Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	autolearn_force=no version=3.4.0
Date: Mon, 18 Jan 2016 02:25:56 +0000
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Re: zle-line-pre-redraw_hooks
Message-ID: <20160118022556.GB3979@tarsus.local2>
References: <20160115062647.GA28411@tarsus.local2>
 <160115111406.ZM21055@torch.brasslantern.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <160115111406.ZM21055@torch.brasslantern.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Seq: zsh-workers 37661

Bart Schaefer wrote on Fri, Jan 15, 2016 at 11:14:06 -0800:
> On Jan 15,  6:26am, Daniel Shahaf wrote:
> }
> } Would it make sense to provide a way to register multiple
> } zle-line-pre-redraw hooks?  Similar to $chpwd_functions?
> 
> We discussed this a while back in the context of other hook widgets
> such as zle-line-init and ended up rejecting the idea ... or, IIRC
> more specifically we rejected the idea of having add-zsh-hook know
> about both functions and widgets.
> 

Agreed about not doing that in add-zsh-hook.

> Whatever we might do has to work generically for hook widgets, not
> just for some specific one.
> 

Okay.  I'll revisit this when there's a specific need to it (not merely
a speculative need).

Cheers,

Daniel

