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

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

Re: Can't compile


From: Robert Thorpe
Subject: Re: Can't compile
Date: 26 Feb 2007 10:46:48 -0800
User-agent: G2/1.0

On Feb 26, 6:31 pm, Xavier Maillard <address@hidden> wrote:
> Robert Thorpe <address@hidden> wrote:
> > This is why "eval-and-compile" is needed.
>
> This is a neat explanation Robert. Thank you very much.

I hope it's correct.

> Problem with this code is that even with a "eval-and-compile"
> there are several other places where I have to add this clause or
> the "eval-when-compile" form. That's why it is sucky ;)

Yes.  Have a look at how some other modes deal with it, often you can
get away with only a few mentions of eval-when-compile or eval-and-
compile. One way to do it is to put all the functions used in macros
into a separate file and then load that file inside eval-when-compile.



reply via email to

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