oantolin / orderless

Emacs completion style that matches multiple regexps in any order
GNU General Public License v3.0
776 stars 27 forks source link

orderless-affix-dispatch: Do not error on empty string #166

Closed minad closed 8 months ago

minad commented 8 months ago

Currently the affix dispatcher errors on empty components. The error can occur if a style dispatcher returns an empty component, since then the compilation happening before style modifiers recursively calls the style dispatchers again. I am not sure if you consider this a bug? I also made the code a little bit shorter. The problem occurs with my +orderless-keyword-dispatch prototype, which I've posted in https://github.com/oantolin/orderless/pull/162#issuecomment-1971806583.

oantolin commented 8 months ago

Thanks! I do consider this a bug. It's not just others dispatchers: a custom component separator function could easily make empty components, too,