unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrea Corallo <acorallo@gnu.org>
To: Gabriele Nicolardi <gabriele@medialab.sissa.it>
Cc: Michael Heerdegen <michael_heerdegen@web.de>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	69573@debbugs.gnu.org
Subject: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil)
Date: Mon, 18 Mar 2024 05:35:11 -0400	[thread overview]
Message-ID: <yp14jd3vq5s.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <4b0ffba9-7f12-4129-a64a-b187a15d5f2c@medialab.sissa.it> (Gabriele Nicolardi's message of "Sun, 17 Mar 2024 10:33:59 +0100")

Gabriele Nicolardi <gabriele@medialab.sissa.it> writes:

> Il 15/03/24 18:24, Stefan Monnier ha scritto:
>>> 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
> I tried to copy the code provided at the beginning of my .emacs file,
> but the issue persists.

I'm not sure comp-run is not already loaded when this gets evaluated,
removing "(with-eval-after-load 'comp-run" might do the job?  The real
test would be recompiling tho :)

  Andrea





  reply	other threads:[~2024-03-18  9:35 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-05 23:53 bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Gabriele Nicolardi
2024-03-06  0:31 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-06  5:16   ` Gabriele Nicolardi
2024-03-07  2:52     ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-07  5:55       ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-07 16:26         ` Gabriele Nicolardi
2024-03-09  4:30           ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-09 14:47             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-09 21:41               ` Andrea Corallo
2024-03-09 21:48                 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-15 13:52                   ` Andrea Corallo
2024-03-15 14:36                     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-15 16:22                     ` Gabriele Nicolardi
2024-03-15 16:58                       ` Andrea Corallo
2024-03-17  9:30                         ` Gabriele Nicolardi
2024-03-15 17:24                       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-17  9:33                         ` Gabriele Nicolardi
2024-03-18  9:35                           ` Andrea Corallo [this message]
2024-03-18 17:28                     ` Gabriele Nicolardi
2024-03-18 19:42                       ` Andrea Corallo
2024-03-26  7:34                         ` Andrea Corallo
2024-03-09  4:33           ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-09  7:14             ` Gabriele Nicolardi
2024-03-06  5:42   ` Gabriele Nicolardi
2024-03-07  3:15     ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yp14jd3vq5s.fsf@fencepost.gnu.org \
    --to=acorallo@gnu.org \
    --cc=69573@debbugs.gnu.org \
    --cc=gabriele@medialab.sissa.it \
    --cc=michael_heerdegen@web.de \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).