[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46958: 28.0.50; invalid-function error for macros that have function
From: |
Phil Sainty |
Subject: |
bug#46958: 28.0.50; invalid-function error for macros that have function bindings |
Date: |
Mon, 8 Mar 2021 22:06:31 +1300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 8/03/21 8:18 pm, Robert Irelan wrote:
> I extracted the macros into a separate library `org-fc-macs` and then
> called `(require 'org-fc-macs)` from the file where the error is
> occurring `org-fc-type-normal.el`. This seems to have fixed the issue.
Good to hear.
I'll just add that my suggestion wasn't quite optimal -- as this is
a macros-only library, a better way to require it is:
(eval-when-compile (require 'org-fc-macs))
This ensures that macros are loaded for byte-compilation, but means
that subsequently loading the byte-compiled .elc library does *not*
load org-fc-macs (which is not needed in this scenario as, in the
byte-compiled code, the macro calls have already been expanded).
-Phil
- bug#46958: 28.0.50; invalid-function error for macros that have function bindings, Robert Irelan, 2021/03/05
- bug#46958: 28.0.50; invalid-function error for macros that have function bindings, Lars Ingebrigtsen, 2021/03/06
- bug#46958: 28.0.50; invalid-function error for macros that have function bindings, Basil L. Contovounesios, 2021/03/06
- bug#46958: 28.0.50; invalid-function error for macros that have function bindings, Robert Irelan, 2021/03/06
- bug#46958: 28.0.50; invalid-function error for macros that have function bindings, Phil Sainty, 2021/03/06
- bug#46958: 28.0.50; invalid-function error for macros that have function bindings, Basil L. Contovounesios, 2021/03/07
- bug#46958: 28.0.50; invalid-function error for macros that have function bindings, Robert Irelan, 2021/03/07
- bug#46958: 28.0.50; invalid-function error for macros that have function bindings, Phil Sainty, 2021/03/08
- bug#46958: 28.0.50; invalid-function error for macros that have function bindings, Robert Irelan, 2021/03/08
- bug#46958: 28.0.50; invalid-function error for macros that have function bindings,
Phil Sainty <=
bug#46958: 28.0.50; invalid-function error for macros that have function bindings, Pip Cet, 2021/03/07