From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Date: Mon, 18 Mar 2024 05:35:11 -0400 Message-ID: References: <28a41cd9-3abe-47bf-b3d5-fed723dde32b@medialab.sissa.it> <875xy0qjzf.fsf@web.de> <812c2400-07b5-451a-89bc-4e9e4b60fb44@medialab.sissa.it> <87r0gmbvnc.fsf@web.de> <871q8mbn7e.fsf@web.de> <87zfv8uivz.fsf@web.de> <4b0ffba9-7f12-4129-a64a-b187a15d5f2c@medialab.sissa.it> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13629"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Heerdegen , Stefan Monnier , 69573@debbugs.gnu.org To: Gabriele Nicolardi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 18 10:39:53 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rm9TE-0003KB-KL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Mar 2024 10:39:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rm9Ru-00052K-67; Mon, 18 Mar 2024 05:38:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rm9Rp-0004m3-BD for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 05:38:26 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rm9Ro-0001Du-JQ for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 05:38:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rm9SP-0000IV-SI for bug-gnu-emacs@gnu.org; Mon, 18 Mar 2024 05:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Mar 2024 09:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69573 X-GNU-PR-Package: emacs Original-Received: via spool by 69573-submit@debbugs.gnu.org id=B69573.17107547061072 (code B ref 69573); Mon, 18 Mar 2024 09:39:01 +0000 Original-Received: (at 69573) by debbugs.gnu.org; 18 Mar 2024 09:38:26 +0000 Original-Received: from localhost ([127.0.0.1]:45011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rm9Rn-0000H7-45 for submit@debbugs.gnu.org; Mon, 18 Mar 2024 05:38:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rm9Rg-0000Gj-SN for 69573@debbugs.gnu.org; Mon, 18 Mar 2024 05:38:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rm9Op-0000Ts-Vb; Mon, 18 Mar 2024 05:35:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=WGeajwYMj6bmG3AI5WteYuxYdB+nKAo8QzV5W9rqd9Q=; b=j1t8MQBEMZcIKC8PStBE qoV98Cxwxo7lQi959tJaxtnjnWshEHAXoQluO+qJzkhUAy8M26hceL7E+t8qgimAMjR16LKwouQEE NYyL7hWmWY5iHo5zgBt+i8SlTvlZO9lfcAZZow2d3QBWjWq4gUaUQN1A1HVrAzusKT7KCBlcPGEF7 WXV42u2sKkUnqWKnh4zgbeKp39gcg/eXJUh9JM+di2FfhjpjzphPojoFvYH0GieVkJGuxpGKtUaSG A3GNMmx2oCIgs7haiSmzg+tb1RzjpEV5k+MtAaLcwLufEi6S2Wv1tZ4Gx2UKGk7Ntqv1swUCXBceD Po53BBqrv5SXnQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rm9Oo-0000TI-AM; Mon, 18 Mar 2024 05:35:19 -0400 In-Reply-To: <4b0ffba9-7f12-4129-a64a-b187a15d5f2c@medialab.sissa.it> (Gabriele Nicolardi's message of "Sun, 17 Mar 2024 10:33:59 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281797 Archived-At: Gabriele Nicolardi 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