jschaf / esup

ESUP - Emacs Start Up Profiler
401 stars 21 forks source link

esup mistaking ;;; file ends here, as variable, void variable "here" #89

Open Inc0n opened 3 years ago

Inc0n commented 3 years ago

I uses flycheck as a result, it reminds me to add ;;; file.el ends here at the end of every file. And esup think that "here" is a variable and throw the following error:

(void-variable here)

I'm using emacs 27.1

Inc0n commented 3 years ago

Weirdly enough, it only complains on certain files, such as my init-javascript, init-css, init-lua-mode, init-transient, and a few others. And some other files, it's fine with the footer...

carlf commented 3 years ago

I think I have bumped into the same problem as you. I found that ESUP was choking on the comment at the top of my recentf file. When I changed the save location to .recentf.el, it handled the comment correctly. Are the files you are having trouble with ending in .el?

Inc0n commented 3 years ago

Yeah, the files in questions are all in .el, however, most emacs lisp configuration files have this file extension...