help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: byte-compile-file: emacs vs the command line.


From: Eli Zaretskii
Subject: Re: byte-compile-file: emacs vs the command line.
Date: Sun, 29 Dec 2013 18:26:50 +0200

> From: rclayton@monmouth.edu (R. Clayton)
> Date: Sun, 29 Dec 2013 10:59:55 -0500
> 
> Why is the command-line compile failing, and how can I fix it?
> 
>   require uses load, and running in batch doesn't load init files.  This means
>   load-path doesn't contain everything it should to load local files.  The fix
>   is to fix load-path:
> 
>     $ cat rm.el
>     (require 'general-utils)
> 
>     $ emacs --batch --exec '(byte-compile-file "rm.el")'

Like this:

  $ EMACSLOADPATH=/what:/ever:/you:/need emacs -batch -f batch-byte-compile 
rm.el



reply via email to

[Prev in Thread] Current Thread [Next in Thread]