GNU bug report logs - #12548
24.2.50; Eager macro-expansion skipped due to cycle

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Mon, 1 Oct 2012 12:55:02 UTC

Severity: minor

Found in version 24.2.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 12548 <at> debbugs.gnu.org
Subject: bug#12548: 24.2.50; Eager macro-expansion skipped due to cycle
Date: Tue, 02 Oct 2012 21:41:54 -0400
> Compiling emacs-lisp/ert-x.el
> Warning: Eager macro-expansion skipped due to cycle:
>     => (load "gv.el") => (macroexpand-all (defun gv--defun-declaration
>     )) => (macroexpand (pcase  )) => (load "pcase.el") =>
>     (macroexpand-all (defmacro pcase-let  )) => (macroexpand (dolist  ))
>     => (load "gv.el")

I think this is the problem due to "loading cl.el causes pcase's use of
dolist to load cl-macs, which loads gv, which loads pcase, ...".
The occurrence of this problem depends on when pcase gets byte-compiled
(since pcase.elc does not require macroexpansion of dolist).

The best fix I can think of is to ban cl.el's dolist, but I have the
strange feeling this suggestion is not going to fly.

> PPS does using the ellipsis character add anything?

As compared to using "..."?  It's more concise.
As compared to not writing it at all, the advantage is that it preserves
the Elisp syntax, making the result more clear.


        Stefan




This bug report was last modified 12 years and 200 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.