I isolated the problem.

Consider the following minimal org file:

------------cut here------------
* An example of org file

  Here I put a C snippet

  #+begin_src c
    int main() {
      printf("hello world\n");
      return 0;
    }
  #+end_src
------------cut here------------

When I try to export to HTML, it gives the following error

------------cut here------------
org-babel-exp process c at position 54...
htmlize-faces-at-point: Symbol's value as variable is void: overlays
------------cut here------------

I attach my init.org file. I am using the latest version of org from the git:

org-version: 9.1.9 (release_9.1.9-582-gfb5872)

Any idea ?

Giuseppe Lipari



Le dim. 8 avr. 2018 à 19:00, Giuseppe Lipari <giulipari@gmail.com> a écrit :
Dear all,

I use org-mode to publish my web site that I update every now and then. The site contains my lectures, and indeed I am preparing my lecture for tomorrow. Unfortunately, while publishing the site using the usual procedure, I get the infamous error

    Symbol's value as variable is void: overlays

For publishing, I run emacs in batch mode from a makefile as follows:

    emacs --batch -l batch_project.el --kill

and my batch_project.el is attached. I cannot attach a minimal file that produces the error, because I find it difficult to come up with a minimal example. All I can say is that the error is produced after many .org files have been correctly processed.  Everything used to work until a few months ago. Last week I switched to the latest version of emacs from the git repo, and today I get the error. Maybe I should clean some cache? Or change the configuration of the project?

Can someone suggest me any direction where I should look into?

Thanks in advance

Giuseppe Lipari