From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.orgmode,gmane.emacs.bugs Subject: 24.0.91; package.el (org): Macros in tar packages & order of byte compilation Date: Thu, 24 Nov 2011 17:42:38 +0530 Message-ID: <81pqgh90sp.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322136802 16495 80.91.229.12 (24 Nov 2011 12:13:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2011 12:13:22 +0000 (UTC) Cc: Stelian Iancu , emacs-orgmode@gnu.org To: bug-gnu-emacs@gnu.org Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Thu Nov 24 13:13:18 2011 Return-path: Envelope-to: geo-emacs-orgmode@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 1RTYB4-0007xt-Hn for geo-emacs-orgmode@m.gmane.org; Thu, 24 Nov 2011 13:13:18 +0100 Original-Received: from localhost ([::1]:39425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTYB3-0005US-KO for geo-emacs-orgmode@m.gmane.org; Thu, 24 Nov 2011 07:13:17 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTYAr-0005EA-AD for emacs-orgmode@gnu.org; Thu, 24 Nov 2011 07:13:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTYAl-0006y2-Hi for emacs-orgmode@gnu.org; Thu, 24 Nov 2011 07:13:05 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:37716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTYAl-0006xu-E9; Thu, 24 Nov 2011 07:12:59 -0500 Original-Received: by iaek3 with SMTP id k3so3939994iae.0 for ; Thu, 24 Nov 2011 04:12:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:mime-version:content-type; bh=m6+pmAdPY8V3YwxU7YkYcgWXYTaI35AosRi78Z4TCJU=; b=RHWbBeb7oPDczjLSCeZkzry8NHPCswRKhpa+VOPUL8G5N+gD3EaOWkMg8+AXif49dF HzPW6rieSDPf7La9QFzioxuaNEM92CDQR4qPj5J3doDb+BF+FmrKbvENaEoSNrizsfpz 6kOV2FNpbmiOKXA8MqgRYE7nv0QrRBa+juN1o= Original-Received: by 10.42.202.17 with SMTP id fc17mr7063681icb.15.1322136778047; Thu, 24 Nov 2011 04:12:58 -0800 (PST) Original-Received: from JAMBU-NETBOOK ([115.184.91.150]) by mx.google.com with ESMTPS id ai7sm48407478igc.0.2011.11.24.04.12.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Nov 2011 04:12:56 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Original-Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.orgmode:49539 gmane.emacs.bugs:54260 Archived-At: There have been constant flow of issues from users who install daily org tar balls from GNU ELPA. The problem concerns itself with the defmacros that are introduced in the *daily* tar but are *unavailable* in the *emacs* core. At the end of the package installation these new macros never get recognized as macros and gets compiled in as function calls. This triggers crashes at a later stage. Note that there are no such defmacro issues that get reported from users who install org from git repo using conventional make and make install. The crux of the issue is this: 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. 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. 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*. I hope this description is sufficient. I can cite actual posts from orgmode mailing list if additional information is needed.