From 85f273b740afb95d3fac87e4e94584c2979fe962 Mon Sep 17 00:00:00 2001 From: "Ryan C. Thompson" Date: Sun, 26 Feb 2012 14:51:27 -0800 Subject: [PATCH] Clean elc file if it is the *same* age as el file Before, it would only be cleaned if it was older. Now being exactly the same age also means it gets cleaned. This is because if they are the same age, we don't know which came first, so we just have to assume that the elc file is stale and recreate it. --- el-get-byte-compile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/el-get-byte-compile.el b/el-get-byte-compile.el index 75bbc813..65a292e8 100644 --- a/el-get-byte-compile.el +++ b/el-get-byte-compile.el @@ -99,7 +99,7 @@ With optional arg RECURSIVE, do so in all subdirectories as well." for el = (concat (file-name-sans-extension elc) ".el") if (and (file-exists-p elc) (not (file-directory-p elc)) - (file-newer-than-file-p el elc)) + (not (file-newer-than-file-p elc el))) do (progn (message "el-get-byte-compile: Cleaning stale compiled file %s" elc) (delete-file elc nil)))