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

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

Re: byte-compile all files in a directory


From: Le Wang
Subject: Re: byte-compile all files in a directory
Date: Sat, 1 Jan 2011 14:07:25 +0800

On Sat, Jan 1, 2011 at 8:31 AM, ishi soichi <soichi777@gmail.com> wrote:
hi. I would like to implement byte-compile elisp files.  Is there a way to do it for all files in a directory?
I tried "M-x byte-recompile-directory" but it does nothing.  Well, only way I can think of is dired-do-byte-compile...but it still needs to execute one by one.

<C-h>f
byte-recompile-directory

will give you help with the command.  Read it and pay attention to the "If the *.elc does not exist part"

 
And also, sometimes byte-compile-file produces errors like,

Byte compile error for /Users/ishidasouichi/.emacs.d/lisp/contrib/lisp/org-collector.el:

I have no idea why.  This elisp file is downloaded from the official site, so no corrections are made.  There should not be any problem in implementing byte-compile at all.

I can compile this file fine starting from "emacs -q".

Compiling file c:/Users/Le/cygwin_home/.emacs.d/packages/org-7.4/contrib/lisp/org-collector.el at Sat Jan 01 14:01:45 2011
Entering directory `c:/Users/Le/cygwin_home/.emacs.d/packages/org-7.4/contrib/lisp/'

In org-dblock-write:propview:
org-collector.el:159:31:Warning: assignment to free variable `idpos'
org-collector.el:159:31:Warning: reference to free variable `idpos'

You'll need to share more details if you want further help with this.

--
Le

reply via email to

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