completion-table-with-cache does both caching and filtering given a (full) list of candidates. Using it instead of custom logic based on complete-with-action simplifies the code and allows refactoring the template acquisition to only get all completions for point, without having to pre-filter every time with string-prefix-p.
completion-table-with-cache
does both caching and filtering given a (full) list of candidates. Using it instead of custom logic based oncomplete-with-action
simplifies the code and allows refactoring the template acquisition to only get all completions for point, without having to pre-filter every time withstring-prefix-p
.