From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: compilation issues of new export framework Date: Sat, 09 Feb 2013 18:16:53 +0100 Message-ID: <87y5ex5rwa.fsf_-_@Rainer.invalid> References: <876229nrxf.fsf@gmail.com> <87a9rd3odf.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4E3K-0007Sh-Rr for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 12:17:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4E3H-0008Ll-J1 for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 12:17:26 -0500 Received: from plane.gmane.org ([80.91.229.3]:55220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4E3H-0008LV-8R for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 12:17:23 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U4E3W-0004Oi-6L for emacs-orgmode@gnu.org; Sat, 09 Feb 2013 18:17:38 +0100 Received: from pd9eb4ac4.dip.t-dialin.net ([217.235.74.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Feb 2013 18:17:38 +0100 Received: from Stromeko by pd9eb4ac4.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Feb 2013 18:17:38 +0100 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: emacs-orgmode@gnu.org Hi Nicolas, an oddity occurs since the new exporter moved into core (I don't think I had seen this before, so maybe you can relate to what is different now): --8<---------------cut here---------------start------------->8--- Compiling /lisp/org-mode/lisp/org.el... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... Loading org-element... --8<---------------cut here---------------end--------------->8--- This only happens when using byte-recompile-directory, which means org-element has already been loaded in that session and is present as a byte-compiled file. I haven't yet found where in org.el these loads are triggered, but it seems that this might be related to macro expansion. In any case, the resulting org.elc file therefore depends on the compilation method, which is highly undesirable. I haven't been able to analyse this further. Another sticky point is your use of declare-function: some of these are actually defsubst, not defun: org-element-{contents,nested-p,element-property,put-property} I don't think they will be inlined unless their definition has been interned, declaration alone will not suffice. I don't see an easy way to factor out those parts from org-element that are needed by org, but I suggest that we should find one. There are more errors when doing a "make ORGCM=slint2 compile" in the last pass. These files are probably all just missing an (eval-when-compile (require 'cl)) but I only checked ox-md. --8<---------------cut here---------------start------------->8--- Compiling single /lisp/org-mode/lisp/ox-beamer.el... In end of data: ox-beamer.el:1250:1:Warning: the following functions are not known to be defined: case, action, defaction, option, otherwise, headline, target Wrote /lisp/org-mode/lisp/ox-beamer.elc Compiling single /lisp/org-mode/lisp/ox-icalendar.el... In org-icalendar-entry: ox-icalendar.el:504:44:Warning: `(quote t)' is a malformed function ox-icalendar.el:504:44:Warning: `(quote t)' is a malformed function ox-icalendar.el:504:44:Warning: `(quote t)' is a malformed function In end of data: ox-icalendar.el:974:1:Warning: the following functions are not known to be defined: case, category, todo-state, local-tags, all-tags, incf, all, unblocked, hour, day, week, month, year Wrote /lisp/org-mode/lisp/ox-icalendar.elc Compiling single /lisp/org-mode/lisp/ox-jsinfo.el... In end of data: ox-jsinfo.el:261:1:Warning: the following functions are not known to be defined: case, path, sdepth, tdepth, otherwise Compiling single /lisp/org-mode/lisp/ox-md.el... In end of data: ox-md.el:494:1:Warning: the following functions are not known to be defined: case, on, trans, off --8<---------------cut here---------------end--------------->8--- Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves