Rasmus <ras...@gmx.us> 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,

Reply via email to