emacs-devel
[Top][All Lists]
Advanced

[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.



reply via email to

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