1 ### vim:ft=zsh:foldmethod=marker
3 ## Copyright: 2009, Frank Terbeck <ft@bewatermyfriend.org>
5 LOOKUP_guard || return 1
6 local hook obackend old_lookup_ei ret lookup_context
9 lookup_context="$(LOOKUP_context)"
12 if [[ $1 != '--' ]] ; then
17 zstyle -t "${lookup_context}" debug &&
18 printf 'LOOKUP_hook: current context: "%s"\n' "${lookup_context}"
20 zstyle -a "${lookup_context}" hooks hooks || return 0
22 old_lookup_ei=${lookup_ei}
24 for hook in ${hooks} ; do
25 (( ${+functions[$hook]} == 0 )) && continue
35 lookup_ei="${old_lookup_ei}"