[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Emacs 25.0.94: Is require failing to define macros and functions at
From: |
Drew Adams |
Subject: |
RE: Emacs 25.0.94: Is require failing to define macros and functions at compile time? |
Date: |
Wed, 29 Jun 2016 08:16:10 -0700 (PDT) |
> At the top of hact.el is:
> (mapc 'require '(hhist set))
I think that's your problem. The byte-compiler is probably
looking for a literal (require 'hhist) and (require 'set).
The Elisp manual, node `Named Features', says this:
When ‘require’ is used at top level in a file, it takes effect when
you byte-compile that file (*note Byte Compilation::) as well as when
you load it. This is in case the required package contains macros that
the byte compiler must know about. It also avoids byte compiler
warnings for functions and variables defined in the file loaded with
‘require’.
You might be able to get away with wrapping that `mapc' in an
`eval-when-compile'. But why bother with the `mapc' at all?
Just a guess - someone else will correct me if wrong.
- Emacs 25.0.94: Is require failing to define macros and functions at compile time?, Robert Weiner, 2016/06/29
- Re: Emacs 25.0.94: Is require failing to define macros and functions at compile time?, Clément Pit--Claudel, 2016/06/29
- Re: Emacs 25.0.94: Is require failing to define macros and functions at compile time?, Robert Weiner, 2016/06/29
- Re: Emacs 25.0.94: Is require failing to define macros and functions at compile time?, Davis Herring, 2016/06/29
- RE: Emacs 25.0.94: Is require failing to define macros and functions at compile time?, Drew Adams, 2016/06/29
- Re: Emacs 25.0.94: Is require failing to define macros and functions at compile time?, Robert Weiner, 2016/06/29
- RE: Emacs 25.0.94: Is require failing to define macros and functions at compile time?, Drew Adams, 2016/06/29
- Re: Emacs 25.0.94: Is require failing to define macros and functions at compile time?, John Mastro, 2016/06/29
- RE: Emacs 25.0.94: Is require failing to define macros and functions at compile time?, Herring, Davis, 2016/06/29
- Re: Emacs 25.0.94: Is require failing to define macros and functions at compile time?, Robert Weiner, 2016/06/30
RE: Emacs 25.0.94: Is require failing to define macros and functions at compile time?,
Drew Adams <=
Re: Emacs 25.0.94: Is require failing to define macros and functions at compile time?, Michael Heerdegen, 2016/06/29