From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode Subject: bug#10125: 24.0.91; package.el (org): Macros in tar packages & order of byte compilation Date: Thu, 24 Nov 2011 08:05:21 -0500 Message-ID: References: <81pqgh90sp.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1322139950 7209 80.91.229.12 (24 Nov 2011 13:05:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2011 13:05:50 +0000 (UTC) Cc: 10125@debbugs.gnu.org, emacs-orgmode@gnu.org, stelian.iancu@gmail.com To: Jambunathan K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 24 14:05:45 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RTYzp-0005L5-Cw for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Nov 2011 14:05:45 +0100 Original-Received: from localhost ([::1]:37752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTYzo-0005eq-Tm for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Nov 2011 08:05:44 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTYzg-0005Qd-Pc for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2011 08:05:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTYza-0000O0-VW for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2011 08:05:36 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTYza-0000Nq-Tk for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2011 08:05:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RTZ13-0005lj-J2 for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2011 08:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Nov 2011 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10125-submit@debbugs.gnu.org id=B10125.132214001722163 (code B ref 10125); Thu, 24 Nov 2011 13:07:01 +0000 Original-Received: (at 10125) by debbugs.gnu.org; 24 Nov 2011 13:06:57 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RTZ0z-0005lQ-5J for submit@debbugs.gnu.org; Thu, 24 Nov 2011 08:06:57 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RTZ0v-0005lH-AY for 10125@debbugs.gnu.org; Thu, 24 Nov 2011 08:06:55 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RTYzR-00039k-Q6; Thu, 24 Nov 2011 08:05:21 -0500 In-reply-to: <81pqgh90sp.fsf@gmail.com> (message from Jambunathan K on Thu, 24 Nov 2011 17:42:38 +0530) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 24 Nov 2011 08:07:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54261 gmane.emacs.orgmode:49543 Archived-At: > From: Jambunathan K > Date: Thu, 24 Nov 2011 17:42:38 +0530 > Cc: emacs-orgmode@gnu.org, Stelian Iancu > > 1. While building via Makefile, there is an implicit dependency that is > *enforced* via make rules and files with macro definitions are compiled > ahead of their consumers. That's not true: there are no dependencies defined in lisp/Makefile.in in the Emacs source tree for Lisp files, with a very few exceptions. Org Mode files certainly have no dependency rules in lisp/Makefile.in. So the question why the problem does not happen while compiling Org in Emacs remains. > 2. While building from ELPA, the compilation order seems to be > alphabetical. So the files get compiled bass ackwards. For example, > org-macs.el gets compiled after org-agenda.el. > > In summary, there needs to be a way to specify the order in which files > are compiled in a multifile tar. This was discussed several time, in the context of recompiling multiple Lisp files while building Emacs, and the decision till now was to ignore the issue. While at least in principle one could write a Lisp program that would analyze the various `require' and `load' calls (possibly as side effect of byte compilation, like GCC does), and generate Makefile rules with correct prerequisites, this is a non-trivial project. One simple band-aid is to remove all the *.elc files before byte-compiling after resync. This prolongs the compilation, but the results are predictably correct. > A supplementary question to (2): > > During the package compilation, when encountering (require > 'some-org-library-with-macros) does the library get loaded from *within* > the tarball or from the *emacs core*. Whichever is found first along load-path, I think. See `openp'.