emacs: removed the character limitation for AC.
emacs: refactored the completion functions.