Just now reading up on Leo's Autocompletion feature and comparing to how Notepad++ does it.
"Words" are taken from the current file—everywhere in the current
file, comments and code...
"Functions" are pre-defined and loaded along with the lexer that corresponds to the computer language of the file.
QQQ
At present, Leo doesn't add keywords (functions). Leo's present code completer finds most words as it its, but maybe not all.
Though Leo is limited to Leo source and the Python standard library.
Rob was talking about an expansion of the autocompleter, to be not limited to Leo's source or the standard library but also to include "words" from the current file and also include language agnostic completions.