function autoexp-mode entered an error