From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ox bug] batch export seems to be broken or have changed Date: Mon, 20 Jul 2015 09:02:46 +0200 Message-ID: <87io9f2twp.fsf@nicolasgoaziou.fr> References: <87h9pf4opz.fsf@gmx.us> <87h9p1ewdy.fsf@nicolasgoaziou.fr> <87bnf9jhw4.fsf@gmx.us> <871tg4v9qd.fsf@nicolasgoaziou.fr> <87vbdgil0j.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH54f-0006Hs-Pv for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 03:01:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZH54e-0006zP-Qy for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 03:01:17 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:50045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH54e-0006yC-LF for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 03:01:16 -0400 In-Reply-To: <87vbdgil0j.fsf@gmx.us> (rasmus@gmx.us's message of "Sun, 19 Jul 2015 10:55:56 +0200") 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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > That's my first guess. But I don't know how to debug it since it's batch. > And I don't know if it's a an Emacs bug or Org needing to adapt to some > new behavior. > > I could try to print the filename input to the console or something... You may write the output of (buffer-file-name) to a temporary file, e.g., emacs --batch --file foo.org --eval="(let ((name (buffer-file-name))) (with-temp-file \"report.txt\" (insert (message \"%S\n\" name))))" >>> I tried to downgrade to Emacs 24.5, but when I batch export as above I >>> get: >>> >>> Symbol's function definition is void: cl-struct-define >> >> That doesn't ring a bell. > > Weird. Cl-struct is what is used for holding backends, right? Correct. But AFAICT, `cl-struct-define' doesn't exist in Emacs 24. Regards,