emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Error: Symbol's value as variable is void: overlays
@ 2018-04-08 17:00 Giuseppe Lipari
  2018-04-08 17:55 ` Giuseppe Lipari
  2018-04-08 18:57 ` Adonay Felipe Nogueira
  0 siblings, 2 replies; 4+ messages in thread
From: Giuseppe Lipari @ 2018-04-08 17:00 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 1003 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1216 bytes --]

[-- Attachment #2: batch_project.el --]
[-- Type: text/x-emacs-lisp, Size: 1424 bytes --]

(add-to-list 'load-path "~/elisp/org-mode.old/lisp")
(add-to-list 'load-path "~/elisp/org-mode.old/contrib/lisp")
(add-to-list 'load-path "~/elisp/emacs-htmlize")

(require 'org)

(require 'htmlize) 
(setq c-standard-font-lock-fontify-region-function
      'font-lock-default-fontify-region)

(setq org-export-backends (quote (ascii html)))     
(org-babel-do-load-languages
 'org-babel-load-languages
 '((dot . t)
   (emacs-lisp . t)
   (python . t)
   (ditaa . t)
   (sh . t)))

(custom-set-variables '(org-confirm-babel-evaluate nil))

(require 'ox-publish)
(org-babel-lob-ingest "~/Documents/www/org-web/org-code/navbar-code.org")
(setq org-publish-project-alist
      '(
	("org-notes"
	 :base-directory "~/Documents/www/org-web/"
	 :base-extension "org"
	 :publishing-directory "~/Documents/www/public_html"
	 :recursive t
	 :publishing-function org-html-publish-to-html
	 :headline-levels 5             ; Just the default for this project.
	 :auto-preamble t
	 )
	
	("org-static"
	 :base-directory "~/Documents/www/org-web/"
	 :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|config\\|sh\\|zip\\|c\\|h"
	 :publishing-directory "~/Documents/www/public_html"
	 :recursive t
	 :publishing-function org-publish-attachment
	 )

	("org" :components ("org-notes" "org-static"))
	;; ... add all the components here (see below)...
      ))

(org-publish-remove-all-timestamps)

(org-publish-project "org")

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-08 19:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-08 17:00 Error: Symbol's value as variable is void: overlays Giuseppe Lipari
2018-04-08 17:55 ` Giuseppe Lipari
2018-04-08 18:57 ` Adonay Felipe Nogueira
2018-04-08 19:20   ` Giuseppe Lipari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).