replace c++-mode auto-complete function