Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Upcoming zle-line-pre-redraw hook - can it be saved and restored?
- X-seq: zsh-workers 39749
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Upcoming zle-line-pre-redraw hook - can it be saved and restored?
- Date: Fri, 28 Oct 2016 08:00: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=2qbweVeDcVLdFwxV1rdHuQJWvxEZR6AmSIyWcND7j+c=; b=RAjwNCPV/nyIMCDiNcOnkkWCl61GxcWlEoWMsyxCrqThFYPvwXDa8rDzCvvz4GdpiU 1z8vUrXZ8gqEBE9kgzRIR6KGE32A74LvD9BqNyIdmW54oI7WGDk2M/6Ud9SziczyJPrO txC+WlDit6jC0c/sSvNjm8h8RFhhSRkWZD5bzZ669c4fxagu2uzui/k4JVaNUYjnwvxl IsFSU40VKjQ6uDcbPVT8vVK63KQuGrBsZ2hV/YrqRu9YMsDoQ6lxY90w6OrjXV/U2hUw h+vRGIMoG3/YTp4FLKYOeaujJNd62F0vDWtjY+E6t+m8ay1rPaOUZu26SPOw9Q0EEtJr SLtg==
- In-reply-to: <20161028141310.GA6133@fujitsu.shahaf.local2>
- 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: <1477642738.995456.770012089.09023ED8@webmail.messagingengine.com> <20161028141310.GA6133@fujitsu.shahaf.local2>
On Oct 28, 2:13pm, Daniel Shahaf wrote:
}
} Sebastian Gniazdowski wrote on Fri, Oct 28, 2016 at 01:18:58 -0700:
} > With zle-line-pre-redraw, one will have to also save the hook, disable
} > it, then restore it after leaving recursive-edit. Will this be
} > possible?
} >
}
} You could delete the 'zle-line-pre-redraw' widget at entry and re-create
} it at exit. Or do the same with the function it is bound to (and
} replace it by an empty(){} stub to avoid stderr spam).
Hmm.
add-zle-hook-widget could arrange to have the hook functions examine a
"disabled" zstyle and skip the entire list, or perhaps skip selected
widgets ... but what would the context be? Something to do with the
function call stack?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author