Hook in max_completions
Limit when we limit
Move message generation (fixes "complete" command)
Remove now-redundant code
Remove a comment I was going to add
Move this check
max_completions == 0 should mean "disable completion"
Better documentation
Damn, a lot of this stuff isn't exception-safe