Re: [O] Error: Symbol's value as variable is void: overlays

2018-04-08 Thread Giuseppe Lipari
Here you are :

-cut-here
Debugger entered--Lisp error: (void-variable overlays)
  htmlize-sorted-overlays-at(1)
  htmlize-faces-at-point()
  htmlize-buffer-1()
  htmlize-region(1 58)
  org-html-htmlize-region-for-paste(1 58)
  org-html-fontify-code("int main() {\nprintf(\"hello world\\n\");\n
return 0;\n}" "c")
  org-html-do-format-code("int main() {\nprintf(\"hello
world\\n\");\nreturn 0;\n}" "c" nil t nil)
.
-cut-here

It is htmlize-faces-at-point(), and only when the exported org-buffer
contains a snippet of code. Otherwise, the export process works fine.

Giuseppe Lipari


Le dim. 8 avr. 2018 à 20:57, Adonay Felipe Nogueira 
a écrit :

> 2018-04-08T17:00:59+ Giuseppe Lipari wrote:
> > Symbol's value as variable is void: overlays
>
> Make sure to get the backtrace, like so:
>
> --8<---cut here---start->8---
> emacs --batch --eval '(setq debug-on-error t)' -l batch_project.el --kill
> --8<---cut here---end--->8---
>
> ... this might help us all find where the "overlays" is being called.
>
>


Re: [O] Error: Symbol's value as variable is void: overlays

2018-04-08 Thread Adonay Felipe Nogueira
2018-04-08T17:00:59+ Giuseppe Lipari wrote:
> Symbol's value as variable is void: overlays

Make sure to get the backtrace, like so:

--8<---cut here---start->8---
emacs --batch --eval '(setq debug-on-error t)' -l batch_project.el --kill
--8<---cut here---end--->8---

... this might help us all find where the "overlays" is being called.



Re: [O] Error: Symbol's value as variable is void: overlays

2018-04-08 Thread Giuseppe Lipari
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  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
>
>
>
>
>


init.org
Description: Binary data