bug#17627: 24.3.91; Spurious "Warning: the function `cl-member' might not be defined at runtime."

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bug#17627: 24.3.91; Spurious "Warning: the function `cl-member' might not be defined at runtime."

Achim Gratz

In GNU Emacs 24.3.91.1 (i686-pc-linux-gnu, GTK+ Version 3.10.4)
 of 2014-04-13 on Rainer.invalid
Windowing system distributor `The X.Org Foundation', version 11.0.11403901
System Description: openSUSE 13.1 (Bottle) (i586)

The add-to-list function has a compiler macro that uses 'cl-member' in
its definition.  That produces spurious byte-compiler warnings which
somehow depend on the order of compilation and/or the presence of other
byte-compiled files.  To reproduce, do this in a standalone Org source
tree with the maint branch checked out:

make compile
rm lisp/ob-tangle.elc
make compile-dirty
rm lisp/ob-tangle.elc lisp/org-src.rlc
make compile-dirty

Note that the warning only seems to be printed when org-src.elc (which
is required from ob-tangle) is already present (i.e. during the first
'make compile-dirty').


This issue is also present for trunk Emacs.


Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables



Reply | Threaded
Open this post in threaded view
|

bug#17627: 24.3.91; Spurious "Warning: the function `cl-member' might not be defined at runtime."

Lars Ingebrigtsen
Achim Gratz <[hidden email]> writes:

> The add-to-list function has a compiler macro that uses 'cl-member' in
> its definition.  That produces spurious byte-compiler warnings which
> somehow depend on the order of compilation and/or the presence of other
> byte-compiled files.

It seems like this was removed in 2013:

commit 0b31660d3c10a0f8e243dd67bd0ecaf2c847d1e6
Author: Stefan Monnier <[hidden email]>
Date:   Thu Jun 13 22:31:28 2013 -0400

    * lisp/emacs-lisp/bytecomp.el (byte-compile-force-lexical-warnings): New var.
    (byte-compile-preprocess): Use it.
    (byte-compile-file-form-defalias): Try a bit harder to use macros we
    can't quite recognize.
    (byte-compile-add-to-list): Remove.

So I'm guessing that this is no longer applicable and am closing the bug
report.

--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no