fixed EMACS test and maxlines