jorgenschaefer / emacs-buttercup

Behavior-Driven Emacs Lisp Testing
GNU General Public License v3.0
362 stars 44 forks source link

Optionally fail when loading old elc files #183

Closed snogge closed 4 years ago

snogge commented 4 years ago

The new --stale-file-error option can be used to activate a hook that will signal an error if a stale .elc file is loaded. Stale means older than its originating .el file.

Fixes #142.

snogge commented 4 years ago

Waiting for tests and some cleanup. I'm redoing the install/uninstall functions as a more minor-mode-like function that can be used to turn on or off or toggle the feature. I really expect it to only be used to turn it on so two functions felt like overkill.

Thank you for reviewing the PR.