GNU bug report logs - #69573
Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil)

Previous Next

Package: emacs;

Reported by: Gabriele Nicolardi <gabriele <at> medialab.sissa.it>

Date: Tue, 5 Mar 2024 23:55:01 UTC

Severity: normal

Done: Andrea Corallo <acorallo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #65 received at 69573 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Gabriele Nicolardi <gabriele <at> medialab.sissa.it>
Cc: Michael Heerdegen <michael_heerdegen <at> web.de>,
 Andrea Corallo <acorallo <at> gnu.org>, 69573 <at> debbugs.gnu.org
Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument
 integer-or-marker-p nil)
Date: Fri, 15 Mar 2024 13:24:13 -0400
> I'm sorry, but I'm not sure what to do to test the modification.
> I have Emacs 29.2 installed via snap. I suppose I would need to
> install the modified version by downloading it from the repo.
> This is something I've never done before.
> If necessary, I could try doing it on a virtual machine.

If you want a lightweight approximation to the real test, you could add
the following to the beginning of your init file:

    (with-eval-after-load 'comp-run
      (require 'cl-lib)
      (defun comp-subr-trampoline-install (subr-name)
        "Make SUBR-NAME effectively advice-able when called from native code."
        (when (memq subr-name comp-warn-primitives)
          (warn "Redefining `%s' might break native compilation of trampolines."
                subr-name))
        (let ((subr (symbol-function subr-name)))
          (unless (or (not (string= subr-name (subr-name subr))) ;; (bug#69573)
                      (null native-comp-enable-subr-trampolines)
                      (memq subr-name native-comp-never-optimize-functions)
                      (gethash subr-name comp-installed-trampolines-h))
            (cl-assert (subr-primitive-p subr))
            (when-let ((trampoline (or (comp-trampoline-search subr-name)
                                       (comp-trampoline-compile subr-name))))
              (comp--install-trampoline subr-name trampoline))))))

and then try and reproduce the problem.


        Stefan





This bug report was last modified 1 year and 117 days ago.

Previous Next


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