From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Difficulties byte-compiling very large .el Date: Mon, 17 Aug 2009 21:22:24 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5df896c9-77e2-4215-bb4a-59b9f57a1790@k6g2000yqn.googlegroups.com> References: <55615d5a-1473-43fc-9ed7-c4708974bd1a@u20g2000prg.googlegroups.com> <4be0bed4-b363-4d97-9d78-a9b506664f05@j21g2000yqe.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1250570637 27775 80.91.229.12 (18 Aug 2009 04:43:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2009 04:43:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 18 06:43:51 2009 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.50) id 1MdGY2-0005nO-86 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2009 06:43:50 +0200 Original-Received: from localhost ([127.0.0.1]:33389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdGY1-00060B-K7 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2009 00:43:49 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k6g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 92 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1250569344 12823 127.0.0.1 (18 Aug 2009 04:22:24 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 18 Aug 2009 04:22:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k6g2000yqn.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:172066 X-Mailman-Approved-At: Tue, 18 Aug 2009 00:43:02 -0400 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:67241 Archived-At: On Aug 17, 8:48=C2=A0pm, Aemon wrote: > On Aug 14, 12:52=C2=A0pm, Xah Lee wrote: > > > > > > > On Aug 12, 7:50 pm, Aemon wrote: > > > > I've been working on a project to create an elisp target for the ANTL= R > > > parser-generator. Here's the project page:http://github.com/aemoncann= on/antlr-elisp/tree/experimental > > > > The generated parser for ActionScript 3 is over 30k lines long and > > > fails tobyte-compile with the message: > > > as3_elispParser.el:31515:33:Error: Invalid character: 256, #o400, > > > #x100 > > > > Here's the source in question:http://aemon.com/file_dump/as3_elispPar= ser.el > > > > I don't think the error is actually related to the content of the > > > file, as deleting arbitrary chunks seems to make the error go away. > > > > There are lots of "Warning: reference to free variable ...." warnings= , > > > but I understand where those are coming from and I'm not worried abou= t > > > them. > > > > Bear in mind there are *lots* of macros being expanded. Most of the > > > forms with the prefix 'a3el' are macros. > > > > Any ideas? > > > i don't have much experience inbytecompilingelisp files... nobody > > seems to have answered maybe i'll take a potshot. > > > i tried to download andbytecompile it, but first error is that i > > lack the required package declared in the first line. So, we couldn't > > really test it. > > > about this error: > > > > as3_elispParser.el:31515:33:Error: Invalid character: 256, #o400, > > > #x100 > > > are you using emacs 22 with emacs 23bytecode or vice versa? as you > > might know, emacs 23 went utf-8 for internal char representation, so > > thebytecode produced are incompatible with emacs 22. The error msg > > above smells like this sort of problem. If your .el files does not > > have any non-ascii char, then it shouldn't be a problem though. > > > oh, just noticed you did give the project page link above. Am tired > > atm will have maybe try later. But when did this problem start to > > happen? There must be a point when things are working and not working. > > > =C2=A0 Xah > > =E2=88=91http://xahlee.org/ > > > =E2=98=84 > > Hi Xah, > > Thanks for taking a look. > > As of my previous email I'd been using exclusively emacs 22, but your > mention of emacs 23 inspired me to try it out. Interestingly the byte- > compile fails with a slightly different error: > > ../test/grammars/as3_elispParser.el:31515:33:Error: Args out of range: > 256, 0, 255 > > - I searched the file for non-ascii characters and found none. > > - The source interprets just fine using eval-buffer. > > - The line mentioned (31515) is the second-to-last line in the file -- > I don't see anything special about it. > > Still no luck, but I'll keep hammering on it. > > BTW, do you know of any other elisp sources that are so large as 31k > lines? interesting info. Thanks. The largest single lisp file i know of is about slightly over 11k lines. e.g. js2-mode. perhaps try the emacs dev mailing list. Xah