From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: [PATCH] Footnote export to LaTeX "wrong number of arguments" error Date: Mon, 1 Aug 2011 09:11:42 -0500 Message-ID: References: <87ipqj4kb3.fsf@Rainer.invalid> <87ei174j2m.fsf@Rainer.invalid> <81zkjv7bdb.fsf@gmail.com> <81sjpn79zu.fsf@gmail.com> <87aabv4fzo.fsf@Rainer.invalid> <8762mj4fe7.fsf@Rainer.invalid> <871ux6x1gs.fsf_-_@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QntDe-000647-7V for emacs-orgmode@gnu.org; Mon, 01 Aug 2011 10:11:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QntDc-0001r0-1e for emacs-orgmode@gnu.org; Mon, 01 Aug 2011 10:11:46 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:53270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QntDb-0001pn-TT for emacs-orgmode@gnu.org; Mon, 01 Aug 2011 10:11:44 -0400 Received: by eyx24 with SMTP id 24so7474683eyx.19 for ; Mon, 01 Aug 2011 07:11:42 -0700 (PDT) In-Reply-To: <871ux6x1gs.fsf_-_@Rainer.invalid> 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: Achim Gratz Cc: emacs-orgmode@gnu.org On Sun, Jul 31, 2011 at 4:07 AM, Achim Gratz wrote: > John Hendy writes: >> Would this have an effect if I don't ever run 'make install'? > > Since it is added to the load-path during compile it might have > undesirable side-effects if an older org-mode resides at that path. > > But, I'm now getting these errors too since I have started Emacs > freshly. =C2=A0The offending commit is 9ff7f80f51a by Eric Schulte, where= he > wraps the defvar definition into eval-when-compile. =C2=A0This change def= ines > the variable during compile and gets rid of that error, but then it is > not defined when loading org-mode the first time. =C2=A0If you do an > org-reload this is rectified (which is why I didn't see the error > yesterday. > > The original error during compile-time comes from using the variable in > a macro expansion. =C2=A0I don't think this is the right thing to do sinc= e we > would not want to expand the variable at compile time (it would not be > variable anymore after compilation). =C2=A0The attached patch seems to > correct this for me. > > > > Let us know if that fixes things for you and I'll let Eric decide if he > pushes that patch or something different, depending on what he really > wanted to do. > Thanks for the checking on this. Yes, M-x org-reload fixes this for me. No exporting the first time, reload, then successful export the second time with no error about the babel variable. Thanks for all your work, John > > Regards, > Achim. > -- > +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ > > Samples for the Waldorf Blofeld: > http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra > >