Subject: Re: [PATCH] _add-zle-hook-widget: New completion.
From: Bart Schaefer <[email-masked]>
To: [email-masked]
Date: Sun, 17 Jul 2016 13:40:41 -0700
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Jul 17, 12:21pm, Bart Schaefer wrote:
}
} _add-zle-hook-widget_classes() {
}   local -a hooktypes=( ${^${=${(f)"$( add-zle-hook-widget -h )"}[3]}} )
}   compadd "$@" -M 'L:|zle-=' -a hooktypes
} }

Er, never mind the ${^...} , that was before I thought of -M 'L:...'

So just

_add-zle-hook-widget_classes() {
  local -a hooktypes=( ${=${(f)"$( add-zle-hook-widget -h )"}[3]} )
  compadd "$@" -M 'L:|zle-=' -a hooktypes
}