From nobody Thu Oct 28 12:22:27 2010 Return-Path: Delivered-To: jd@danjou.info Received: by mx1.naquadah.org (Postfix, from userid 8) id 5417C5C0F6; Tue, 21 Sep 2010 17:56:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on prometheus.naquadah.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=4.5 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPS id 335575C0F2 for ; Tue, 21 Sep 2010 17:56:23 +0200 (CEST) Received: from localhost ([127.0.0.1]:40222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oy5Cf-0006m3-EW for julien@danjou.info; Tue, 21 Sep 2010 11:56:21 -0400 Received: from [140.186.70.92] (port=43154 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oy4jZ-00019P-NL for emacs-devel@gnu.org; Tue, 21 Sep 2010 11:26:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oy4jX-0006bM-QI for emacs-devel@gnu.org; Tue, 21 Sep 2010 11:26:17 -0400 Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]:36405) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oy4jX-0006Z7-Ja for emacs-devel@gnu.org; Tue, 21 Sep 2010 11:26:15 -0400 Received: from cigue.easter-eggs.fr (cigue.easter-eggs.fr [10.0.0.33]) by rose.easter-eggs.fr (Postfix) with ESMTPS id 38C341427B; Tue, 21 Sep 2010 17:26:09 +0200 (CEST) Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.72) (envelope-from ) id 1Oy4jU-0007Qr-MN; Tue, 21 Sep 2010 17:26:12 +0200 From: Julien Danjou To: emacs-devel@gnu.org Date: Tue, 21 Sep 2010 17:26:10 +0200 Message-Id: <1285082770-28535-4-git-send-email-julien@danjou.info> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1285082770-28535-1-git-send-email-julien@danjou.info> References: <1285082770-28535-1-git-send-email-julien@danjou.info> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Julien Danjou Subject: [PATCH 4/4] (project-compile-target) use byte-recompile-file X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Copy: yes Sender: emacs-devel-bounces+julien=danjou.info@gnu.org Errors-To: emacs-devel-bounces+julien=danjou.info@gnu.org Signed-off-by: Julien Danjou --- lisp/ChangeLog | 3 +++ lisp/cedet/ede/proj-elisp.el | 7 ++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4f0aaac..d96fafc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-09-21 Julien Danjou + * cedet/ede/proj-elisp.el (project-compile-target): Use + `byte-recompile-file'. + * cedet/semantic/ede-grammar.el: Use `byte-recompile-file'. * emacs-lisp/lisp-mode.el (emacs-lisp-byte-compile-and-load): Use diff --git a/lisp/cedet/ede/proj-elisp.el b/lisp/cedet/ede/proj-elisp.el index ecdefb2..21322df 100644 --- a/lisp/cedet/ede/proj-elisp.el +++ b/lisp/cedet/ede/proj-elisp.el @@ -131,11 +131,8 @@ Bonus: Return a cons cell: (COMPILED . UPTODATE)." (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)) + (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)) -- 1.7.1