fix auto-complete for cc-mode and java-mode