gnu.emacs.help
[Top] [All Lists]

Strange read error

Subject: Strange read error
From: Dmitry Dzhus <dima@xxxxxxxxxxxxx>
Date: Wed, 30 Jul 2008 20:24:16 +0400
Newsgroups: gnu.emacs.help

I wonder why attempting to byte-compile this code with CVS version of
GNU Emacs:

    (eval-when-compile
      (require 'cc-mode))

fails with the following error:

    In toplevel form:
    test.el:2:21:Error: Invalid read syntax: ")"

While rewriting file contents with the following:

    (eval-when-compile (require 'cc-mode))

writes compiled files just fine. Seems unbelievable.

Looks like this is something specific to `cc-mode` as requiring other
libs compiles ok.

Using GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.11) of
2008-07-30.

Not sure if this is really a bug, so posting to g.e.help in hope to get
some feedback from experienced Emacs hackers.
-- 
Happy Hacking.

http://sphinx.net.ru
<Prev in Thread] Current Thread [Next in Thread>