From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.help Subject: Re: byte-compile all files in a directory Date: Sat, 1 Jan 2011 14:07:25 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016364165ef967b4b0498c2bbdb X-Trace: dough.gmane.org 1293862092 14753 80.91.229.12 (1 Jan 2011 06:08:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 1 Jan 2011 06:08:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: ishi soichi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 01 07:08:08 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PYudK-0006ly-DF for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Jan 2011 07:08:06 +0100 Original-Received: from localhost ([127.0.0.1]:46499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PYudJ-0002Dy-1M for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Jan 2011 01:08:05 -0500 Original-Received: from [140.186.70.92] (port=34577 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PYuci-0002Ds-4y for help-gnu-emacs@gnu.org; Sat, 01 Jan 2011 01:07:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PYucg-0002lL-Pb for help-gnu-emacs@gnu.org; Sat, 01 Jan 2011 01:07:27 -0500 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:46234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PYucg-0002l6-DN for help-gnu-emacs@gnu.org; Sat, 01 Jan 2011 01:07:26 -0500 Original-Received: by wwb17 with SMTP id 17so12565368wwb.30 for ; Fri, 31 Dec 2010 22:07:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=psgRzsq9BLIizIjxeQAAVztWSdGkwMLgjMWfb2bm6hY=; b=u1nTH9iWHFD8umh1OIESsSS8d2UZWwc424/3+aPODX0CHeuzhGdPkmPCuWUNiWx6VY EH2Vge15JrGxlx5AyRmuvalxC0LLzRpaLTrGb+3w22GPubrQf4H4/Zw+MAJFVZdq2Nv0 OA6oOVsEqdiYtlR3Z4P+RNipHHjNCWZ85910Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=fD8eth+4RULAb6ZHlOAODJlQepv33m+k3TE4uyVxGtMnuDA6t/M95CtjgDWm8Phw3x shVvWr2h5uVB/riE5LBxKqEJO/nVsw+/BJ5VoxqQDUimF31FtYEwIQO0/uPmOcVkM69R yghzWGAVI9G2QJ5yTr7dBB5lJaRGlVgA0+0y8= Original-Received: by 10.227.154.204 with SMTP id p12mr10467970wbw.6.1293862045121; Fri, 31 Dec 2010 22:07:25 -0800 (PST) Original-Received: by 10.227.131.200 with HTTP; Fri, 31 Dec 2010 22:07:25 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78005 Archived-At: --0016364165ef967b4b0498c2bbdb Content-Type: text/plain; charset=ISO-8859-1 On Sat, Jan 1, 2011 at 8:31 AM, ishi soichi 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. > 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 --0016364165ef967b4b0498c2bbdb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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. =A0Is there a way t= o do it for all files in a directory?
I tried "M-x byte-recompile-= directory" but it does nothing. =A0Well, only way I can think of is di= red-do-byte-compile...but it still needs to execute one by one.

<C-h>f
byte-recompile-dire= ctory

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

=A0
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. =A0This eli= sp file is downloaded from the official site, so no corrections are made. = =A0There should not be any problem in implementing byte-compile at all.

I can compile this file fine starting fro= m "emacs -q".

Compiling file c:/Users/Le/cygwin_home/.emac= s.d/packages/org-7.4/contrib/lisp/org-collector.el at Sat Jan 01 14:01:45 2= 011
Entering directory `c:/Users/Le/cygwin_home/.emacs.d/packag= es/org-7.4/contrib/lisp/'

In org-dblock-write:propview:
org-collector.el:159:3= 1: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
--0016364165ef967b4b0498c2bbdb--