Add a static global variable to monitor autocompletion mode in order to prevent cance...