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?



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