emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* orgmode batch publishing failure
@ 2014-11-19 15:22 henry atting
  2014-11-19 16:24 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: henry atting @ 2014-11-19 15:22 UTC (permalink / raw)
  To: emacs-orgmode

org-mode version 8.3beta (release_8.3beta-581-g0e52f0)

After updating orgmode from git batch publishing does not work anymore,
the error message says:

Autoloading failed to define function time-add

The according part of Makefile

--8<---------------cut here---------------start------------->8---

sheet: $(HOME)/misc/horg/ledger-queries.org $(HOME)/.org_batch_publish
	touch $(HOME)/misc/horg/ledger-queries.org
	emacs --batch -Q -l $(HOME)/.org_batch_publish --eval '(org-publish "org")'

--8<---------------cut here---------------end--------------->8---


.org_batch_publish

--8<---------------cut here---------------start------------->8---
  ;; -*- mode: emacs-lisp  -*-


(let* ((my-lisp-dir "~/dummy_layer/rechner/emacs+/")
       (default-directory my-lisp-dir)
       (orig-load-path load-path))
  (setq load-path (cons my-lisp-dir nil))
  (normal-top-level-add-subdirs-to-load-path)
  (nconc load-path orig-load-path))

(require 'org)
;;____________________________________________________________________setup


 (org-babel-do-load-languages 
	'org-babel-load-languages
				       '((emacs-lisp . t)
                                        (dot . t)
                                        (ditaa . t)
					(awk . t)
 					(ledger . t)
 					(python . t)
					(shell . t)
                                        (gnuplot . t)
                                        (latex . t)))
                          

;; I don't want to be prompted on every code block evaluation
(setq org-confirm-babel-evaluate nil)

 (setq 
 org-export-allow-BIND t
 org-export-creator-info nil
 org-html-creator-string ""
 org-html-date-format-string "%d/%m/%Y %R"
 org-html-postamble nil)


 (setq org-publish-project-alist
           '(("org"
              :base-directory "~/misc/horg/"
              :publishing-directory "~/misc/public"
              :section-numbers nil
;              :table-of-contents t
;              :html-preamble nil
	      :publishing-function org-html-publish-to-html
              :style "<link rel=\"stylesheet\" href=\"../.style.css\" type=\"text/css\"/>")
		("org-static"
		 :base-directory "~/misc/horg/"
                 :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
                 :publishing-directory "~/misc/public/"
                 :recursive t
                 :publishing-function org-publish-attachment
 )
))


--8<---------------cut here---------------end--------------->8---

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

* Re: orgmode batch publishing failure
  2014-11-19 15:22 orgmode batch publishing failure henry atting
@ 2014-11-19 16:24 ` Nick Dokos
  2014-11-19 19:21   ` henry atting
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2014-11-19 16:24 UTC (permalink / raw)
  To: emacs-orgmode

henry atting <snd@online.de> writes:

> org-mode version 8.3beta (release_8.3beta-581-g0e52f0)
>
> After updating orgmode from git batch publishing does not work anymore,
> the error message says:
>
> Autoloading failed to define function time-add
>
> The according part of Makefile
>
>
> sheet: $(HOME)/misc/horg/ledger-queries.org $(HOME)/.org_batch_publish
> 	touch $(HOME)/misc/horg/ledger-queries.org
> 	emacs --batch -Q -l $(HOME)/.org_batch_publish --eval '(org-publish "org")'
>

For problems like this, I try doing it without --batch. Start emacs:

    emacs -Q -l $(HOME)/.org_batch_publish

turn on debug-on-error and then eval (org-publish "org").

time-add is defined in time-date.el which is required by org.el, so I'm
not sure why you are getting this. The backtrace (assuming you get one)
might shed some more light.

There have been situations where I get the error with --batch but not
without. These cases are more difficult to debug unfortunately.

Nick

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

* Re: orgmode batch publishing failure
  2014-11-19 16:24 ` Nick Dokos
@ 2014-11-19 19:21   ` henry atting
  0 siblings, 0 replies; 3+ messages in thread
From: henry atting @ 2014-11-19 19:21 UTC (permalink / raw)
  To: emacs-orgmode

> henry atting <snd@online.de> writes:
>
>> org-mode version 8.3beta (release_8.3beta-581-g0e52f0)
>>
>> After updating orgmode from git batch publishing does not work anymore,
>> the error message says:
>>
>> Autoloading failed to define function time-add
>>
>> The according part of Makefile
>>
>>
>> sheet: $(HOME)/misc/horg/ledger-queries.org $(HOME)/.org_batch_publish
>> 	touch $(HOME)/misc/horg/ledger-queries.org
>> 	emacs --batch -Q -l $(HOME)/.org_batch_publish --eval '(org-publish "org")'
>>
>
> For problems like this, I try doing it without --batch. Start emacs:
>
>     emacs -Q -l $(HOME)/.org_batch_publish
>
> turn on debug-on-error and then eval (org-publish "org").

This worked flawlessly without any error...

> time-add is defined in time-date.el which is required by org.el, so I'm
> not sure why you are getting this. The backtrace (assuming you get one)
> might shed some more light.
>
> There have been situations where I get the error with --batch but not
> without. These cases are more difficult to debug unfortunately.
>

I could not track down the exact cause of this misbehaviour but I did
assume that it had something to with my migration from emacs 24* to 25*,
most probably some wrong lisp/etc directories. I removed everything and
built emacs anew, now it works again as expected.

> Nick

Thanks,
henry

      

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

end of thread, other threads:[~2014-11-19 19:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-19 15:22 orgmode batch publishing failure henry atting
2014-11-19 16:24 ` Nick Dokos
2014-11-19 19:21   ` henry atting

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).