ERC: miscompiled macros
Jerry James
james at xemacs.org
Sun Mar 14 12:44:18 EST 2004
Hi Adrian,
Adrian Aichner <adrian at xemacs.org> wrote:
> there are absolutely no diffs between
> 2004-03-12_09-01_macro_err_1.txt
> and
> 2004-03-10_10-01_macro_err_1.txt
> so this has been around for a while.
It has. Actually, I've reported it at least twice before, but I think I
caught you on vacation or something. At least, I remember getting a
"mailbox is full" back from your account on one of those occasions.
> However, I would like to fix these.
Great.
> Is there a cookbook style documentation for fixing miscompiled macros?
Well, the problem is that erc.el has not been evaluated when
erc-members.el is compiled, so the macro definitions are not available.
The fix is probably just to put
(eval-when-compile (require 'erc))
at the top of erc-members.el somewhere.
> Is the basic idea that defining features need to be required inside
> (eval-when-compile ...) or autoloads modified to specify when
> autoloaded "function" is really a macro?
Exactly.
> BTW: What about keymaps not autoloaded with the 'keymap argument?
Errrmmmm.... I don't know.
--
Jerry James
http://www.ittc.ku.edu/~james/
More information about the XEmacs-Beta
mailing list