Eric S Fraga [2022-12-22 10:22:29] wrote: > On Wednesday, 21 Dec 2022 at 23:09, Stefan Monnier via Users list for the > GNU Emacs text editor wrote: >>> 5311 79% - completion-boundaries >>> 5311 79% - # >>> 5311 79% - complete-with-action >>> 5311 79% - # >>> 4776 71% - cape--dabbrev-list >>> 4776 71% - dabbrev--find-all-expansions >>> 4704 70% - dabbrev--find-expansion >>> 4671 70% - dabbrev--try-find >>> 2959 44% - dabbrev--search >> >>`completion-boundaries` should not need to perform a `dabbrev--search`. >> Which version of Emacs is that? > > It's Emacs from git, up to date as of yesterday morning. > >> It would be useful to figure out what is this >> # function (presumably a completion-table) >> and how it calls `complete-with-action` because normally it should call >> it with an argument of the form `(boundaries . N)` which should cause >> `complete-with-action` to return nil immediately. > > Any suggestion on how to do this? I guess I would need to disable > native compilation and re-build? Oh, I forgot that `complete-with-action` actually won't return immediately if the completion table it's passed as argument is itself a function. I'm not sure if the patch below will make much difference (there's a chance the `dabbrev--search` will still take place, just via some other call), but at least I think it's "Right". Daniel, WDYT? Stefan