From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Date: Fri, 15 Mar 2024 13:24:13 -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> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13862"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Heerdegen , Andrea Corallo , 69573@debbugs.gnu.org To: Gabriele Nicolardi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 15 18:24:54 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 1rlBIb-0003Jr-On for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Mar 2024 18:24:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlBIC-0008LR-Bw; Fri, 15 Mar 2024 13:24:28 -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 1rlBIB-0008L3-GX for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2024 13:24:27 -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 1rlBIB-0005nt-7c for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2024 13:24:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlBIk-0002HY-Df for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2024 13:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Mar 2024 17:25:02 +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.17105235008761 (code B ref 69573); Fri, 15 Mar 2024 17:25:02 +0000 Original-Received: (at 69573) by debbugs.gnu.org; 15 Mar 2024 17:25:00 +0000 Original-Received: from localhost ([127.0.0.1]:53685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlBIi-0002HF-8C for submit@debbugs.gnu.org; Fri, 15 Mar 2024 13:25:00 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:1706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlBIf-0002H2-RT for 69573@debbugs.gnu.org; Fri, 15 Mar 2024 13:24:58 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 64437100170; Fri, 15 Mar 2024 13:24:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1710523454; bh=0GctER63HoHQjStmGPEndYOZPkUM1l/IG4AZA5pIlpg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=klhh+GAW9XQZxVjCKucc00IoTUmvBAp5PEy2LurBCeKQ3X+QC02LgwtbAyx0cGPjg 3yqzRA03hYWc7RB87nZe9/xEET2AcnofutaRYAv/b2oJdoCCr39VZWEe9gzY7T+IO7 bHylj00NnLUkSEMhClp/0AvYiMJpIZRp/NegqRf6KtkFQv2EbBMHgiy7/n3nUMP6s7 WJLDOMhEwJ41dN4HJlE12q663lOheoAGxDGimphLVnmoes0KMuKsSfR2+TxawNtDFk bIDhmX+lnWoFcTqRj/K2l8hBe8cnirj2tDyttbjMnrCEsQNA/61DSdUd+lMPWqVefn Ty/NE0Yk5QPhA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7242910005D; Fri, 15 Mar 2024 13:24:14 -0400 (EDT) Original-Received: from alfajor (unknown [23.233.149.155]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 50CE51201A2; Fri, 15 Mar 2024 13:24:14 -0400 (EDT) In-Reply-To: (Gabriele Nicolardi's message of "Fri, 15 Mar 2024 17:22:26 +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:281691 Archived-At: > 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