[ESS] ess related changes in site-lisp break emacs batch mode

Paul Johnson pauljohn at ku.edu
Tue Aug 30 08:48:27 CEST 2005


Can one of you help me figure out this issue in Fedora Core 4 linux?  It
has Emacs-21.4-5 and ESS-5.2.8.  I install ess in 
/usr/share/emacs/site-lisp and it works great, as usual.  However, after 
installing that (and it is the only thing in site-lisp), it breaks 
something in my path settings so that batch mode Emacs usage does not 
have the path it needs.

  The Swarm libraries (http://www.swarm.org) used to compile, and will 
compile if  I remove the site-lisp directory, but when I leave ess 
installed, the build fails on a call to emacs in batch mode:

/usr/bin/emacs -batch -f batch-byte-compile 
/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.2/=with-hdf/_protocol.el
Loading /usr/share/emacs/site-lisp/site-start.d/emacs-ess-init.el 
(source)...
Loading /usr/libexec/emacs/21.4/i386-redhat-linux/fns-21.4.1-x.el 
(source)...
While compiling toplevel forms in file 
/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.2/=with-hdf/_protocol.el:
   !! File error (("Cannot open load file" "cc-defs.el"))
Done
make[3]: *** 
[/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.2/=with-hdf/protocol.elc] 
Error 1

Now dig this:

$ find /usr/share/emacs/ -name "cc-defs*"
/usr/share/emacs/21.4/lisp/progmodes/cc-defs.elc

I have no cc-defs.el.  But ESS in Emacs in nonbatch does not catch on 
this one. cc mode and all other things work.

I can fiddle around, and one-by-one add elements to the EMACSLOADPATH to 
make this go away, as in

$ export EMACSLOADPATH=/usr/share/emacs/21.4/lisp/progmodes:$EMACSLOADPATH

Then the batch call fails, saying

Cannot open load file: disp-table

and then I add another to the PATH. Eventually that works, but I'm still 
really puzzled that Emacs works interactively, but not in batch.

Thanks in advance
pj

ps: I got nothing relevant in .emacs, do  I?
$ cat ~/.emacs


(setq inhibit-default-init t)

(custom-set-variables
   ;; custom-set-variables was added by Custom -- don't edit or 
cut/paste it!
   ;; Your init file should contain only one such instance.
  '(auto-compression-mode t nil (jka-compr))
  '(case-fold-search t)
  '(current-language-environment "UTF-8")
  '(default-input-method "rfc1345")
  '(global-font-lock-mode t nil (font-lock))
  '(show-paren-mode t nil (paren))
  '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))
  '(transient-mark-mode t))
(custom-set-faces
   ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
   ;; Your init file should contain only one such instance.
  )




-- 
Paul E. Johnson                       email: pauljohn at ku.edu
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700




More information about the ESS-help mailing list