emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Emacs hangs forever when running in batch mode and calling a export org function
@ 2010-09-19  3:59 Marcelo de Moraes Serpa
  2010-09-20  8:08 ` Eric S Fraga
  0 siblings, 1 reply; 2+ messages in thread
From: Marcelo de Moraes Serpa @ 2010-09-19  3:59 UTC (permalink / raw)
  To: Org Mode

Hello all,

So, I was trying to create a simple bash script to export my org items
as iCal, upload it somewhere and subscribe to it from iCal / Google
Calendar. Here's what I came with:

emacs --batch --eval \
 "(progn \
  (add-to-list 'load-path \"~/.emacs.d/vendor/org/lisp\") \
  (load-file \"~/.emacs.d/vendor/org/lisp/org.el\")
  (load-file \"~/.emacs.d/vendor/org/lisp/org-icalendar.el\") \
 (setq org-combined-agenda-icalendar-file \"~/org/org.ics\") \
 (setq org-agenda-files (quote (\"~/org/gtd/gtd.org\")))
 )" \
 -f org-export-icalendar-combine-agenda-files

If I run the exact same code on a vanilla emacs, it works. If I try to
run this command in the shell, I get the following output:

sh org-ical-export.sh
Loading /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/org.el (source)...
Loading subst-ksc...
Loading subst-gb2312...
Loading subst-big5...
Loading subst-jis...
Loading /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/org-icalendar.el
(source)...

And it hangs forever. No error message nothing.

I've checked the Activity Monitor, and this specific instance of emacs
quickly starts using ~100% of the CPU. However, I can't really debug
what's wrong.

I am on OSX Snow Leopard, GNU Emacs 23.2.1 (x86_64-apple-darwin, NS
apple-appkit-1038.29) of 2010-05-08, org release_7.01h-524-gcf5f.

Any ideas?

Thanks,

Marcelo.

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

end of thread, other threads:[~2010-09-20  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-19  3:59 Emacs hangs forever when running in batch mode and calling a export org function Marcelo de Moraes Serpa
2010-09-20  8:08 ` Eric S Fraga

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