From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stelian Iancu Subject: bug#10125: 24.0.91; package.el (org): Macros in tar packages & order of byte compilation Date: Thu, 24 Nov 2011 23:55:48 +0100 Message-ID: References: <81pqgh90sp.fsf@gmail.com> <81ipm9l9kd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTizv-0001Lw-7S for emacs-orgmode@gnu.org; Thu, 24 Nov 2011 18:46:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTizt-0005BZ-TG for emacs-orgmode@gnu.org; Thu, 24 Nov 2011 18:46:31 -0500 Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-Message-ID: In-Reply-To: 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 Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Glenn Morris Cc: Eli Zaretskii , 10125@debbugs.gnu.org, Jambunathan K On Thu, Nov 24, 2011 at 20:09, Glenn Morris wrote: > Jambunathan K wrote: > >> When compiling with package manager, the compilation happens from within >> a running Emacs session and very likely the "old" Org files are already >> loaded in to the runtime "inadvertently" by the user either by looking >> at the org agenda for the day or may be by just viewing an Org file or >> by the plain old (require 'org-whatever) out of habit in .emacs. > > There's your problem. The only way to reliably compile, especially > something where an old version might already be loaded, is to use a > fresh Emacs instance. There's no reason the "package manager" could not > spawn a separate Emacs in batch-mode as a sub-job to do the compilation. > > cc-mode tries to have some voodoo to get around this, but please, please > don't go down that road. > > I guess nobody ever expected the package manager to be used to load a > different version of something that was already in Emacs. > I am sorry to be asking a stupid question, but then, wouldn't restart Emacs fix the issue and have the new compiled org files loaded? In my case, that didn't seem to happen either (even though load-library showed org-compat to be from ELPA).