Add generic ac-dot-complete function