On Sun, Jan 14, 2024, 13:01 Alan Mackenzie <
acm@muc.de> wrote:
> > I would like to make the cond* macro generate warnings in certain
> > cases, when it is being copiled. What is the recommended way to do
> > that?
> Probably call byte-compile-warn at macro-expansion time?
Most assuredly not. This may give an incorrect file position for the
warning.
Aight, I wasnt thaaat far off the mark..
Since 29.1, the correct function for a warning has been
byte-compile-warn-x.
Self-evidently so, of course, the 'x' standing for "correct". Anyway, what about <29 compatible code?
João