Subject: bug#79353: 31.0.50; Eager macro expansion errors when building master

From: Gerd Möllmann <[email-masked]>
Date: Sun, 31 Aug 2025 08:33:48 +0200

I am seeing errors while producing autoloads when building master from
git clean -xdf.

    INFO     Scraping 1518 files for loaddefs...70% 
  loaddefs-gen: loading file tramp-adb (for tramp--with-startup)
  Loading /Users/gerd/emacs/github/master/lisp/net/tramp-adb.el (source)...
  Warning (emacs): loaddefs-gen: load error
          (error Eager macro-expansion failure: (error "Eager macro-expansion failure: (void-function cl-subseq)"))

Bisected to (in CC):

  1f4e2e82649bb2a122b1406caf645ea06a933dc6 is the first bad commit
  commit 1f4e2e82649bb2a122b1406caf645ea06a933dc6
  Author: JD Smith <[email-masked]>
  Date:   Sun Aug 10 17:17:47 2025 -0400
      Adapt tramp to new autoload-macro expand

      Bug #78995.

      * lisp/net/tramp-compat.el (tramp-loaddefs): suppress error on requiring
      tramp-loaddef.
      * lisp/net/tramp.el (tramp--with-startup): declare autoload-macro
      expand, and suppress warnings about this declare form on older versions
      of Emacs.
   lisp/net/tramp-compat.el | 2 +-
   lisp/net/tramp.el        | 7 +++++++
   2 files changed, 8 insertions(+), 1 deletion(-)