Stefan Monnier writes: >> Emacs 31 comes with the internal function >> `completions--start-of-candidate-at' in simple.el, which returns the >> position of the completion candidate at point in the completions buffer. >> I propose to replace this function with a slightly improved version, >> which returns the candidate string in addition to the candidate bounds. >> It could be made part of the public API: > > Sounds fine to me. Thanks. Patch attached. Daniel