summaryrefslogtreecommitdiff
path: root/lisp/cedet/ede/proj-elisp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cedet/ede/proj-elisp.el')
-rw-r--r--lisp/cedet/ede/proj-elisp.el14
1 files changed, 4 insertions, 10 deletions
diff --git a/lisp/cedet/ede/proj-elisp.el b/lisp/cedet/ede/proj-elisp.el
index 879f36ff4e2..8ae00a8cc4c 100644
--- a/lisp/cedet/ede/proj-elisp.el
+++ b/lisp/cedet/ede/proj-elisp.el
@@ -129,18 +129,13 @@ Bonus: Return a cons cell: (COMPILED . UPTODATE)."
(utd 0))
(mapc (lambda (src)
(let* ((fsrc (expand-file-name src dir))
- (elc (concat (file-name-sans-extension fsrc) ".elc"))
- )
- (if (or (not (file-exists-p elc))
- (file-newer-than-file-p fsrc elc))
- (progn
- (setq comp (1+ comp))
- (byte-compile-file fsrc))
+ (elc (concat (file-name-sans-extension fsrc) ".elc")))
+ (if (eq (byte-recompile-file fsrc nil 0) t)
+ (setq comp (1+ comp))
(setq utd (1+ utd)))))
(oref obj source))
(message "All Emacs Lisp sources are up to date in %s" (object-name obj))
- (cons comp utd)
- ))
+ (cons comp utd)))
(defmethod ede-update-version-in-source ((this ede-proj-target-elisp) version)
"In a Lisp file, updated a version string for THIS to VERSION.
@@ -390,5 +385,4 @@ Argument THIS is the target which needs to insert an info file."
(provide 'ede/proj-elisp)
-;; arch-tag: 3802c94b-d04d-4ecf-9bab-b29ed6e77588
;;; ede/proj-elisp.el ends here