oantolin / orderless

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

Remove orderless-skip-highlighting #133

Closed minad closed 1 year ago

minad commented 1 year ago

This variable was added to support Selectrum, which has been deprecated now. Vertico and Corfu use a different technique to implement deferred highlighting for the visible candidates only.

There are no other users of this variable. The problem of deferred highlighting must be solved more generally by improving the completion styles API itself in minibuffer.el. It is therefore better to not provide this variable here.

minad commented 1 year ago

Oh, actually I found a user: https://github.com/jojojames/fussy/blob/0fbfcbace0729dba685da9b9a74566639b840ec3/fussy.el#L917-L920. Note that fussy is itself a completion style (or completion style framework), which can use Orderless, but it doesn't crucially depend on orderless-skip-highlighting.

Maybe we should then go via deprecation, if you want this.

EDIT: I added a deprecation just to be safe. Note that for special uses of Orderless (e.g. in fussy or as filter function somewhere else), orderless-filter can always be used directly if one does not want highlighting. Therefore we can remove this variable without a feature loss.

minad commented 1 year ago

@oantolin What do you think about this PR?

oantolin commented 1 year ago

The deprecation seems a little safer. Thanks!

minad commented 1 year ago

Thanks for merging!