An editor-pane does in-place completion when your code calls the function editor:complete-in-place .
editor-pane
editor:complete-in-place
CAPI User Guide (Unix version) - 30 Aug 2011