From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 05 18:54:06 2024 Received: (at submit) by debbugs.gnu.org; 5 Mar 2024 23:54:06 +0000 Received: from localhost ([127.0.0.1]:49280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhebl-0004rf-Lc for submit@debbugs.gnu.org; Tue, 05 Mar 2024 18:54:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:35464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhebi-0004rU-OY for submit@debbugs.gnu.org; Tue, 05 Mar 2024 18:54:04 -0500 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 1rhebD-0001r7-TN for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2024 18:53:31 -0500 Received: from smtp06.cbsolt.net ([185.97.217.45]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhebB-0004P1-3l for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2024 18:53:31 -0500 Received: from [10.0.2.15] (host-79-16-242-199.retail.telecomitalia.it [79.16.242.199]) by smtp06.cbsolt.net (Postfix) with ESMTPSA id 4TqC7P3YJ0z3wll for ; Wed, 6 Mar 2024 00:53:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net; s=201504-di4k2w; t=1709682802; bh=c08EKsxY29HNNauJbwo9j9uHvkyF/cYloAyBDcpyCDc=; h=Date:To:From:Subject:From; b=cpXgzrvtbAgRzODfqTNZDpJ1CQiBLZeL2Z6gbWARE8N8T/DLJo1X6TANuxbRM8EIm COydl0ZN7UJSV19wFSzcyyCJ59TDIKnUwK/8UDtgXy6ashHCBSnGHmqbUnZ9oyDW+Z qfP1D+qf4gSemp/TG03STuICVQ4gCP0FequYH40E= Content-Type: multipart/alternative; boundary="------------KEhhvkDmNy0BVuOSGFb1ZB0h" Message-ID: <28a41cd9-3abe-47bf-b3d5-fed723dde32b@medialab.sissa.it> Date: Wed, 6 Mar 2024 00:53:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: bug-gnu-emacs@gnu.org Content-Language: en-US From: Gabriele Nicolardi Subject: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Received-SPF: pass client-ip=185.97.217.45; envelope-from=gabriele@medialab.sissa.it; helo=smtp06.cbsolt.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --------------KEhhvkDmNy0BVuOSGFb1ZB0h Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, I have this code: |(defun make-search-sensitive-to-ifpmod-advice (orig-fun &rest args) "Temporary advice the search functions to make them sensitive to `isearch-filter-predicate'" (let ((POINT (point))) (catch 'filtered (while (apply orig-fun args) (let ((B (match-beginning 0)) (E (match-end 0))) ;; 1 - If all points in the region that matches the search ;; from the previous "search-command" meet the criteria ;; accepted by the filter, then the loop stops (`throw') and ;; returns the position `(point)`: (when (funcall isearch-filter-predicate B E) (throw 'filtered (point))))) ;; 2 - If the search is unsuccessful, or does not meet ;; the criteria accepted by the filter, then return to the ;; starting position and return the value `nil'. (goto-char POINT) nil))) | |(defalias 'search-forward-ifpmod (symbol-function 'search-forward) "Copy of `search-forward' function (to be) adviced to obey to `isearch-filter-predicate'") (advice-add 'search-forward-ifpmod :around #'make-search-sensitive-to-ifpmod-advice) (defalias 're-search-forward-ifpmod (symbol-function 're-search-forward) "Copy of `re-search-forward' function (to be) adviced to obey to `isearch-filter-predicate'") (defalias 'search-forward-regexp-ifpmod 're-search-forward-ifpmod) ;; The following breaks my minor-modes definitions (advice-add 're-search-forward-ifpmod :around #'make-search-sensitive-to-ifpmod-advice) | I found that this particular code snippet: |(advice-add 're-search-forward-ifpmod :around #'make-search-sensitive-to-ifpmod-advice) | breaks my minor-modes definitions. E.g. if I evaluate the code above and later on the following code (MWE): |(defun mwe-function-1 () "MWE function 1" (interactive) (message "function 1 executed")) (define-minor-mode mwe-mode "MWE mode" :init-value nil :lighter (:eval (propertize " MWE " 'face '(:foreground "RoyalBlue" :background "DarkGoldenrod1"))) :keymap `( (,(kbd "") . mwe-function) ) (if mwe-mode (easy-menu-define mwe-menu mwe-mode-map "MWE" '("MWE mode" ;; I want the menu on mode-line only: :visible (not (eq (framep (selected-frame)) 'x)) ["mwe-function-1" mwe-function-1 :help "mwe-function 1"] )) t)) | I get this error: internal-macroexpand-for-load: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Step to reproduce the error: 1. |emacs -Q| 2. Evalute the |add-advice| code 3. Evalute my minor-mode definiton Did I make a mistake in the |add-advice| usage or is it a bug? Best regards, Gabriele Nicolardi ​ --------------KEhhvkDmNy0BVuOSGFb1ZB0h Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi,
I have this code:

(defun make-search-sensitive-to-ifpmod-advice (orig-fun &rest args)
  "Temporary advice the search functions to make them sensitive to
`isearch-filter-predicate'"
  (let ((POINT (point)))
    (catch 'filtered
      (while (apply orig-fun args)
        (let ((B (match-beginning 0))
              (E (match-end 0)))
          ;; 1 - If all points in the region that matches the search
          ;; from the previous "search-command" meet the criteria
          ;; accepted by the filter, then the loop stops (`throw') and
          ;; returns the position `(point)`:
          (when (funcall isearch-filter-predicate B E)
            (throw 'filtered (point)))))
      ;; 2 - If the search is unsuccessful, or does not meet
      ;; the criteria accepted by the filter, then return to the
      ;; starting position and return the value `nil'.
      (goto-char POINT)
      nil)))
(defalias 'search-forward-ifpmod
  (symbol-function 'search-forward)
  "Copy of `search-forward' function (to be) adviced to obey to
`isearch-filter-predicate'")

(advice-add 'search-forward-ifpmod
            :around
            #'make-search-sensitive-to-ifpmod-advice)

(defalias 're-search-forward-ifpmod
  (symbol-function 're-search-forward)
  "Copy of `re-search-forward' function (to be) adviced to obey to
`isearch-filter-predicate'")
(defalias 'search-forward-regexp-ifpmod 're-search-forward-ifpmod)

;; The following breaks my minor-modes definitions
(advice-add 're-search-forward-ifpmod
            :around
            #'make-search-sensitive-to-ifpmod-advice)

I found that this particular code snippet:

(advice-add 're-search-forward-ifpmod
            :around
            #'make-search-sensitive-to-ifpmod-advice)

breaks my minor-modes definitions. E.g. if I evaluate the code above and later on the following code (MWE):

(defun mwe-function-1 ()
  "MWE function 1"
  (interactive)
    (message "function 1 executed"))

(define-minor-mode mwe-mode
  "MWE mode"
  :init-value nil
  :lighter (:eval (propertize " MWE "
                              'face '(:foreground
                                      "RoyalBlue"
                                      :background
                                      "DarkGoldenrod1")))

  :keymap
  `(
    (,(kbd "<C-kp-1>") . mwe-function)
    )

  (if mwe-mode
      (easy-menu-define mwe-menu mwe-mode-map
        "MWE"
        '("MWE mode"
          ;; I want the menu on mode-line only:
          :visible (not (eq (framep (selected-frame)) 'x))
          ["mwe-function-1" mwe-function-1
           :help "mwe-function 1"]
          ))
    t))

I get this error:

internal-macroexpand-for-load: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil)

Step to reproduce the error:

  1. emacs -Q
  2. Evalute the add-advice code
  3. Evalute my minor-mode definiton

Did I make a mistake in the add-advice usage or is it a bug?

Best regards,

Gabriele Nicolardi

--------------KEhhvkDmNy0BVuOSGFb1ZB0h-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 05 19:31:29 2024 Received: (at 69573) by debbugs.gnu.org; 6 Mar 2024 00:31:29 +0000 Received: from localhost ([127.0.0.1]:49301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhfBx-0005mU-Dj for submit@debbugs.gnu.org; Tue, 05 Mar 2024 19:31:29 -0500 Received: from mout.web.de ([212.227.15.4]:57799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhfBt-0005mF-8b for 69573@debbugs.gnu.org; Tue, 05 Mar 2024 19:31:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1709685045; x=1710289845; i=michael_heerdegen@web.de; bh=96/Q3UF9I51+tLQzUXah4bjehgY8PPEYZ1jwxGump3I=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=OKA/nnmSsfQJzlYKmxc/58sS74zeHV3K8HUhzeYaob7l7M69zrOOCG32NTQ3plWt OelC1aNiw8UAWpKkpsEtwUInQrkyQVGXDSfDkUiyspA+cIIiQ+a+rfTT8vIs+0V1c qVmck0Jp2LfPibN6wvS2vDMUfQG99BMc9qqUlxMGiSv/1t83X2+tCbEtK3/HNX4fu k36CKJvpeEQPONk5pMPqoYWtEuq+Tkkfi+nG1iPTtNVsAHPf/2WcsjgR28eMkmYbM xpvJqZ0buSsGYL4jHxgi6qAnG9hxJmOe+4JrmTJxG4jlI8QS2b8kON+mgNYRRP8L6 0HQpHu6WIcvQSRJ0hQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.76.229.82]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N5lnT-1qniMo2qXz-016q0y; Wed, 06 Mar 2024 01:30:45 +0100 From: Michael Heerdegen To: Gabriele Nicolardi Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: <28a41cd9-3abe-47bf-b3d5-fed723dde32b@medialab.sissa.it> (Gabriele Nicolardi's message of "Wed, 6 Mar 2024 00:53:20 +0100") References: <28a41cd9-3abe-47bf-b3d5-fed723dde32b@medialab.sissa.it> Date: Wed, 06 Mar 2024 01:31:16 +0100 Message-ID: <875xy0qjzf.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:rO98mXdy2SMc9wvNUgXp59V8cNB3a5apaA2iQUasCEJGEdpiRIM MDhaUj8m95+ats/1QhXaZvoI6Un1lS91HwdDB9t5UPVgi/ODTZRehQ9RjlSFes31E8WbCWe jtqfvk3qB2pHwlZ+Cio2B222A4pkG5W6CpBPTZTLMQui6s79oDN3zsx9ztvRolMO03bB8sx Yud8uife0/y6xiDN7ww5A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:AYcKBz4iqlM=;QS7PhX2iKQuCSx5Cd/S3fZJotp9 hRK1fqrroXoc0vGxFgexzLUAIdpraJqhDMNDcKAMCXXGoBJCk9tlQc+vSf8WO25A5WCfuahzb 7FDcfKApVDHP5ws3M6YWBW/kyhwhNiOcLiJzcBryFLcVttZ4LsCS7kn7OdyFmqiI1uIDpCguR E3eRx+mt6Qbx4jAalJ5GKI7WhLR563oiEKh87KOEfa3DVtoSA5AeFplM9fWlCBUE7d5hTmooj ZcQtcTDqnVSpgoCKUWoEpeOPHVwkq9rdJ/MAMiiAPOBu/yclSIm59s3/deqWE8ydOwJVPDskG oYdftgwd2A6GzCcrZwewqXpcZx2bH4v/lNvi4AnQya6cCNb5cYH8sCsow7PMlKg+3j3V6CrTV 90ybpb4u+Yrx6NWECEmJKeBun4ORN2phN4aK7IF4vAKffwNPv2FmyGBKbE71+2snBxtJet/BX Hy3FAH7Fe6JYqHnPs7LvFfoINp0vC1/scTbX9AnYV6QUOg5WY5Hi+F15ADr2ntuOynK+pDMfj i03+bGwnacml9rqosLMJzsOEb1Wn7R2mTi+mlI8r601NdtD7CjVEu2Y8yj7Dv/2S2MYLXuLjs 1ZMsv+6c5nLz7iMR8LR4OX+3Bh0vZlO36LjK1wSI9VBpy7Hafs8WtER8RAOrtpOOg3e9Phmic qnqjDHjmkwEhYpdIt9iXKGfGkjTywvi7Pb//6v2/kWUYuPbrH5UYjRT7YnIwp+5j2kvXsJPuw AmFG28HI0S0ua6313JR8g2Ecx9vRYWOgMeRRrxVIfOYtwWVAehZepFF50Ymjhs+CeAXm5p/zx vr8LeVI8yrvVAxDoNP4WKZo0+RZ+6LX1gDQGM/d1MDC80= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69573 Cc: 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Gabriele Nicolardi writes: > I have this code: [...] I can't reproduce this is with master or 29.1, but I can with 28.2. This is the backtrace in 28.2: Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) forward-paragraph(1) fill-forward-paragraph(1) fill-region(1 520 left t) easy-mmode--mode-docstring("MWE mode" "Mwe mode" mwe-mode-map mwe-mode) I guess you hit a bug that has already been fixed. Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 06 00:17:15 2024 Received: (at 69573) by debbugs.gnu.org; 6 Mar 2024 05:17:15 +0000 Received: from localhost ([127.0.0.1]:49416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhjeV-0004iu-0d for submit@debbugs.gnu.org; Wed, 06 Mar 2024 00:17:15 -0500 Received: from smtp05.cbsolt.net ([185.97.217.44]:39290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhjeR-0004ie-A3 for 69573@debbugs.gnu.org; Wed, 06 Mar 2024 00:17:13 -0500 Received: from [10.0.2.15] (host-79-16-242-199.retail.telecomitalia.it [79.16.242.199]) by smtp05.cbsolt.net (Postfix) with ESMTPSA id 4TqLJJ6rgYz3wf1; Wed, 6 Mar 2024 06:16:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net; s=201504-di4k2w; t=1709702194; bh=M7/ZDg/j/B1Wfj4BVmQZx6iCmLF4echXZhTQmMInVk0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Inl0w+ijjfZxDb/u47UwpYVzzk8VvkRodmFxMHhi+q1oBakSyxHoweqAoJt38sMLl e8WJI7MXFx+q+NdQpnk5yrkuvwTSt4cFRoERvV5sZzLrpPyKobbkO3s03s7bHJ5SA0 PjeWoacAmF1Rq2c4gBNsI1xqNqlLV68YMNIgOq70= Message-ID: <812c2400-07b5-451a-89bc-4e9e4b60fb44@medialab.sissa.it> Date: Wed, 6 Mar 2024 06:16:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) To: Michael Heerdegen References: <28a41cd9-3abe-47bf-b3d5-fed723dde32b@medialab.sissa.it> <875xy0qjzf.fsf@web.de> Content-Language: en-US From: Gabriele Nicolardi In-Reply-To: <875xy0qjzf.fsf@web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69573 Cc: 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) I'm on Emacs 29.2 emacs -version GNU Emacs 29.2 Development version ac89b1141a26 on master branch; build date 2024-02-27. Il 06/03/24 01:31, Michael Heerdegen ha scritto: > Gabriele Nicolardi writes: > >> I have this code: [...] > I can't reproduce this is with master or 29.1, but I can with 28.2. > This is the backtrace in 28.2: > > Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) > forward-paragraph(1) > fill-forward-paragraph(1) > fill-region(1 520 left t) > easy-mmode--mode-docstring("MWE mode" "Mwe mode" mwe-mode-map mwe-mode) > > I guess you hit a bug that has already been fixed. > > Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 06 00:43:31 2024 Received: (at 69573) by debbugs.gnu.org; 6 Mar 2024 05:43:31 +0000 Received: from localhost ([127.0.0.1]:49436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhk3v-00085J-AV for submit@debbugs.gnu.org; Wed, 06 Mar 2024 00:43:31 -0500 Received: from smtp03.cbsolt.net ([185.97.217.42]:58326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhk3r-000852-IW for 69573@debbugs.gnu.org; Wed, 06 Mar 2024 00:43:29 -0500 Received: from [10.0.2.15] (host-79-16-242-199.retail.telecomitalia.it [79.16.242.199]) by smtp03.cbsolt.net (Postfix) with ESMTPSA id 4TqLtd3qSKz3wff; Wed, 6 Mar 2024 06:42:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net; s=201504-di4k2w; t=1709703771; bh=OHij1RLnKBE07G0StMpHOtWrvbDSqdNyjtEr+VbB41w=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=YhQ0JFnStRa1MVDVDE2Pk5cXQN6W105gSYwJzmi0JQa89RM6OOheN0fnwmzLMSffj xEatr8JcauiuM4ndCRet3Klkd7cJ+WApIL5Ko+RfZPsuS/Ci+8erAjGmT9fOjAmpxA ANwAaksekI/1HCqjwjcpgK7thTI+mgqkrnef/S5o= Message-ID: <1a656d80-9cc3-4f31-8e40-b0d903d08986@medialab.sissa.it> Date: Wed, 6 Mar 2024 06:42:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Content-Language: en-US To: Michael Heerdegen References: <28a41cd9-3abe-47bf-b3d5-fed723dde32b@medialab.sissa.it> <875xy0qjzf.fsf@web.de> From: Gabriele Nicolardi In-Reply-To: <875xy0qjzf.fsf@web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69573 Cc: 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) This is the backtrace in 29.2: Debugger entered--Lisp error: (error "Eager macro-expansion failure: (wrong-type-argumen...")   error("Eager macro-expansion failure: %S" (wrong-type-argument integer-or-marker-p nil))   internal-macroexpand-for-load((define-minor-mode mwe-mode "MWE mode" :init-value nil :lighter (:eval (propertize " MWE " 'face '(:foreground "RoyalBlue" :background "DarkGoldenrod1"))) :keymap `((,(kbd "") . mwe-function)) (if mwe-mode (easy-menu-define mwe-menu mwe-mode-map "MWE" '("MWE mode" :visible (not (eq ... ...)) ["mwe-function-1" mwe-function-1 :help "mwe-function 1"])) t)) nil)   eval-buffer()  ; Reading at buffer position 767 Il 06/03/24 01:31, Michael Heerdegen ha scritto: > Gabriele Nicolardi writes: > >> I have this code: [...] > I can't reproduce this is with master or 29.1, but I can with 28.2. > This is the backtrace in 28.2: > > Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) > forward-paragraph(1) > fill-forward-paragraph(1) > fill-region(1 520 left t) > easy-mmode--mode-docstring("MWE mode" "Mwe mode" mwe-mode-map mwe-mode) > > I guess you hit a bug that has already been fixed. > > Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 06 21:53:07 2024 Received: (at 69573) by debbugs.gnu.org; 7 Mar 2024 02:53:08 +0000 Received: from localhost ([127.0.0.1]:52179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri3sZ-0005Tg-N9 for submit@debbugs.gnu.org; Wed, 06 Mar 2024 21:53:07 -0500 Received: from mout.web.de ([212.227.17.11]:36109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri3sX-0005T9-6O for 69573@debbugs.gnu.org; Wed, 06 Mar 2024 21:53:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1709779943; x=1710384743; i=michael_heerdegen@web.de; bh=lJaotpEPkPLDQVSQkNbgrAISzHCoVM2BqYMr7+lLvcE=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=rM9WchMtbxw9NsqXPyK9Hla3eBovMlkcD6EHdySZdP+S1dn4sHOu07cvXRi6Br05 0StEHqmATipUYsxoG7jsaCsk07bF/ypfL62X7fZ7a3ckmS/mzT/Iy26QgkDOo5y3T XRla0u5WkmXeGeW3BkQuw4QXVYANzizXezg4lH594c1mfvtGJLamQnNPBJLmBvkUV JEYuDxdw58+6Br1VYvydX4YR72AcRnZTzJiDxpbZmCLGmegv6j+Qh3nM08Rjpn/vi AJ/33lYbPLC7gZHLmV1jwRrsIQH3WbJbZDthyEuvgAbmI5dsL0el4qxMYS+WNIMBh qt2CgW1YwX2bszfFag== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.76.229.82]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MbTL1-1r6W3q2m7d-00bkMq; Thu, 07 Mar 2024 03:52:23 +0100 From: Michael Heerdegen To: Gabriele Nicolardi Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: <812c2400-07b5-451a-89bc-4e9e4b60fb44@medialab.sissa.it> (Gabriele Nicolardi's message of "Wed, 6 Mar 2024 06:16:31 +0100") References: <28a41cd9-3abe-47bf-b3d5-fed723dde32b@medialab.sissa.it> <875xy0qjzf.fsf@web.de> <812c2400-07b5-451a-89bc-4e9e4b60fb44@medialab.sissa.it> Date: Thu, 07 Mar 2024 03:52:55 +0100 Message-ID: <87r0gmbvnc.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:47pXWdIZ32LiYc1LN4KQ+aYCdy9R6yInXTgej6L9D1+X6S5dBFP EjkVaKFKeQoHKHjBDZJHc/AG+GIQWppxMUyQmZ2Y+6VHNo8yehp+tmLhnMQrnb0cOdiCOa3 GxRPr4+OWz2evWDEE0AiD6ESHWrYHceQ7o/Mc8T1N0H7z4rYqYFEDNHaCrlS0qz9cRJ9cKk CGfhNPb5LhSRKxWmP4jKg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:ydp6YZy3w38=;1zvElHroefbqhedXv/WH0lRU4yI 13nfNjxpDN+xkDGpFFlCUrqq7hYLvhORc0yzvRlHERv9BP5NSG18mjzEOvzhLo44DiPcwsU5L IBXuAsC0jHQ6bF/ID0f+MwfwF7pTLgmEMoAETFKquV0aSGvl0Nj5eEQlqHubY446JTjvG1rdx hmgV8e/LSUnsjb0cFwQkadBUo1f8m03debjPm+5C1Hcz3tNB5kVLuU1xERrNV9yRz852YWHpe l1v/nrAUeAQJ9V6trFg61QCxiZtKj+m/CLkAsAHdGRmr/iGL8aqFp/cegQaEtTsB2bkDRgCAL aDYH11KDP/9bdDr7cv+1J/BUHLea2joMU5XRd26wASBSiHOGcw0awCnmcE4OUqthrxcQ41YGr BvYQM80Svr1K40G5R1iMVtZFO2JBzNPr+GsA1D5MflvR6n0pE2vlCVMw09hWQFNpSwGWYXdM3 0PGWT8TAgXCO+H2f+NkeHxjETcyVPYRCw90gnDEvbp74404bbNsxRaEIb2e/K1Ge28CK+06eJ oyLTO7Xwuy1wV1n7io9Mm82FI3mGwsr72r2gBriK4Nq3bp5yyrQStP1z9ZVzP8Al/MfvJQrAz nowi0Lt09mm/AU9BEf7sEwyeRPXF6HNVrf9qAMxIKwVPdiyjFHseWTVpdpRMN0COrcYEu0RpC n+kDZKT3eowSaNcq/FQ2EEtSzWcxi4eL1u87baejL5D5Ki/9GphiMg5Y2gLc8gpwD9UXb7mDr JHe4bRWL26STDdzmf5dGE5nBiZSs93+/gQFay0ozxT+ayadABMYoNtSj9KpzQMM5j7rRhwhTF +ph5GMlGtl+DFgs9Hk8FpEeUTKnxINQO5iIq1bpBWHinA= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 69573 Cc: 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gabriele Nicolardi writes: > I'm on Emacs 29.2 > > emacs -version > GNU Emacs 29.2 > Development version ac89b1141a26 on master branch; build date 2024-02-27= . Thanks. I can't find a commit "ac89b1141a26" in my repository, though. Where does your Emacs come from (is it maybe a modified version)? Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 06 22:16:09 2024 Received: (at 69573) by debbugs.gnu.org; 7 Mar 2024 03:16:09 +0000 Received: from localhost ([127.0.0.1]:52183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri4Eq-00063O-Tq for submit@debbugs.gnu.org; Wed, 06 Mar 2024 22:16:09 -0500 Received: from mout.web.de ([212.227.15.4]:37117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri4Eo-00062s-Ky for 69573@debbugs.gnu.org; Wed, 06 Mar 2024 22:16:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1709781325; x=1710386125; i=michael_heerdegen@web.de; bh=Z7QL1sRFC3tusnP1SEXN5zuhZuqnhsCFXF84wOTGwfs=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=O1j/pmlqvTTs09ErC8gxXEmDAIEvLqBiuoKK4AXPQCuAppX6BS9ouhPeD+YspcH1 E1C4R5KBF15b5ccwVGJNYWHHNgBFop7vOEqW1//VhEKoR2MDSsZ1zpFPTaHz1rRcP pO7TV2SGHl1QmgpQ7NwUGPBH0F9Bsr3aCHD9FzBHAbfNgjrX69z9UIwMZZmkm9xnO YVpUoAjZnJdTy+2nmyD7+SvZ8aZ1ROkF895aUHxNrRq6t8AZ/Im2xSjhAHG0ZfaFr 9m8eNQPSEi+B22lsjrEFRpJUAMOxyjJknMhty2EeITJ+uChvzh8DnTDrpsxRCYE4u bwjFkWoWJQC869HlEQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.76.229.82]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MFayw-1rd55n3D4g-00H6wY; Thu, 07 Mar 2024 04:15:25 +0100 From: Michael Heerdegen To: Gabriele Nicolardi Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: <1a656d80-9cc3-4f31-8e40-b0d903d08986@medialab.sissa.it> (Gabriele Nicolardi's message of "Wed, 6 Mar 2024 06:42:48 +0100") References: <28a41cd9-3abe-47bf-b3d5-fed723dde32b@medialab.sissa.it> <875xy0qjzf.fsf@web.de> <1a656d80-9cc3-4f31-8e40-b0d903d08986@medialab.sissa.it> Date: Thu, 07 Mar 2024 04:15:57 +0100 Message-ID: <87msrabuky.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:NMqpCt2w+vaBEssrUhQ6KrzZgv1i1POdXp13cRuLlVpHjKCSk4u XfWi0WGbCyjx+ZTZ+RZUxGEHGP7Om8xC7E5aTVAlG8ZIUGK940ymnm0zmjRUolGAtuJOItH e/Zu9W79ttwkemfzLqqRfTISaPPsIw4kKZF4eGmQ+M0abh6GYtN157j8WJdtwPJf2FhveN5 Leniliczq4NolMBe7jf9Q== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:SG2j++6BkCo=;gGWbFNs6e7dhX6UcZdR99b71cfJ N/ly5rRypTlyXqypcajY2HVg6MT8h8FikoOFCcKZyBKx0N3ugo5zZ+DcitYNd5QTVNlvRfhg7 H+0DmAhoaBr4GCDYZbcgLwpO3Cw97mwos7Yo/kzqwW7DgBToJnRp7T5leYVVpwciUzLxFKuaw BN9ZPVzPpP5scjytD6hecZaZvM6BD5961M4hFEmgyUtyvoHlSY0TGH2EUuucfbLuZ72qJ+s78 YFvHRIHpdimFXyVOs8eTmQx6F0iPM2QR7I+0abgCF2dSGdtnfURQFm+h4aWJSdxgMUG5cn1WD JZuWiOhCd/q+j1mbpeeamK8lQPafJKvf8TWjwL3ydft6DjUo0jrxa9/ufuRFGKPuG0ZVRO8Co VOkGOE6B0+UTItCgTWlxtaZsk4xLKbls8oK9AvvqQnh53R/QarFpdhXjk2ucYkYTKs9YMjfHk tKqK0qS1FbnTFjSeVmsrhMvOXKe7n9gPDDtGGEvaCxC83JiAlEmSWypx2wHXkPg9DP/KVV+dM sfdKijWeOloNDXwfvS8hdcGOPzzYEbWKgxZeQyaw3dE//Qw6cutWQvRwI/V5/amE4TLe2Mdxs QlQ4Kbj+jbY+n/TxG0TDJrVl5i2B0A7FO4TNe+JMo5eJHUf93Cys2rtT58g1nkfITJ5BYFxKk I600WirzDfDbFySoJM37737l8e1EeRmvMaiIPMfl0souz8wCFgcKayCLh/rscy8o9emWa0w21 4aNJMTI2yl8qGbvVWVq2Czk4bQHdBnoMfqVzzzcTVfdx71jDGmeAAcYmzA1VhfVso2QQZRQWS ++cH4zvSP+cGgod6zZDpXURgxR9vKTmVAtOWe3658ldwE= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69573 Cc: 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Gabriele Nicolardi writes: > This is the backtrace in 29.2: > > Debugger entered--Lisp error: (error "Eager macro-expansion failure: > (wrong-type-argumen...") > =C2=A0 error("Eager macro-expansion failure: %S" (wrong-type-argument > integer-or-marker-p nil)) Thanks - I think that's the same problem as my backtrace showed. My guesses are that either `easy-mmode--mode-docstring's setup of the temporary buffer it uses for filling the docstring doesn't always suffice, or there is an interference with nadvice's advices of docstring making functions (`advice--defalias-fset', `nadvice--make-docstring'). Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 07 00:55:44 2024 Received: (at submit) by debbugs.gnu.org; 7 Mar 2024 05:55:44 +0000 Received: from localhost ([127.0.0.1]:52274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri6jI-0001fh-5N for submit@debbugs.gnu.org; Thu, 07 Mar 2024 00:55:44 -0500 Received: from lists.gnu.org ([209.51.188.17]:33404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri6jG-0001fa-Np for submit@debbugs.gnu.org; Thu, 07 Mar 2024 00:55:43 -0500 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 1ri6il-000800-4z for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 00:55:11 -0500 Received: from mout.web.de ([212.227.15.4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ri6ia-0001sI-C8 for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 00:55:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1709790886; x=1710395686; i=michael_heerdegen@web.de; bh=TDriIwZiJJdj6FOW92Jm+neg9sQag8dVUzznuGBVXMc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=f5CLv9BztjFGErax1dqR/69Xg4JTfb4FfW0MKkmHAg60MMEE6mkhPAR/Rdo5IzL4 z+LS3j0Zs2S9IHWfDG9KYRFMyAMUq3LR5ejSHiglUoJybmQai54tSDfAsZb7VEu9Y fHb2JILemuAooAns945lvvULDz8X2Fy5WNA78JUK1T333Hrn/VQKW0UqhlqVxdviV m+04uZ9nyAN0eRbwP5F/2BcgkmUACYY58eFi1YLaMDreeAwU0upnMgdNfL2LFl5pa kDBCtpCaMRkf3y+65xwylwifyRH/SdVqIi2yHC3zH+Ou/p+TSn186LS0MqFJZQFvN YxyTNwjJfhHhIIRfVA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.76.229.82]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M2gkl-1rhHlh0sPf-0041P5; Thu, 07 Mar 2024 06:54:46 +0100 From: Michael Heerdegen To: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: <87r0gmbvnc.fsf@web.de> (Michael Heerdegen via's message of "Thu, 07 Mar 2024 03:52:55 +0100") 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> X-Debbugs-Cc: Andrea Corallo Date: Thu, 07 Mar 2024 06:55:17 +0100 Message-ID: <871q8mbn7e.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:igaXkx2hlhPgzX3lOYqniN+1DeGhNBYxcIMq1HmazhYCpE9mmER qDKvLfVQT3fjoVXtY5AYglse0TVQvHbegvXjS/ehjZ1V7K0VDiboBOgPr9DfHDG52YqAnWU vG++Qo/7HTyAxkG4ePKLoT5vBCXCeuJWfsHyG0FoTa9WTmVN+fLgUZVuOsDfvRISfH2BxFe 1dV6H052jKjwuFd+wJWcw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:9zYl3BabiYs=;7/ZeU006iATXTwXSwb848dEf2IP ARWQs3BFlx9iaF9KZS6YjB6bnGoKPyV2WZIcqPyLCZPpbtSz5mcX7lUh30kAIIYfLQ6kw715y MtMYwDf3knARR9L4xlUwhh3ZPzmcDUXuV0xAFLLAXTDYLNvNBSUvlu193rNABWgjHOKq/CvDT FyJd+X5B+ds3G5p7AXVZXu1NnY+urGyjyjspSClN1kMNAVLt31dVxkSTvNyVecUX0PPLuFnUr R2YuklfKZiLVFcyx5xZnAFXb2zF75TQtCugCBDgmRvfUvP0BHN0o/TCI8/b+8ZvnlGdyDT3vk FEMzh4gc9HW2Ax6sBqgMwcPo+53OrUS7i+DxcKvtfaWnCxlaKIRtbnT6OWyCJn/nJnsnQc1mt 2R7m4HVOngIv2dm36cQKQAWJaVFodK4xpW8LQUiwTSh+Fbx/fNLHhla/foRt2mhE44cqnJQzb TxP3GPWy6SmJognwNQm/ErxrOXmC+cvCbYO3gN1mgq97AqVHMbRF8cu1wZh05HmV82pndT07Y NyLqGQEkcDZhstX91+DHE0A3Tq0fKbSHb1b/MQx6LsSENKNCEAGQ9m9/RKDI+3dhRHboVCteI jQXGaQ6XMUdhYNN0+4TPvk/znHN7d8KAXAei1n7vtiwI9cmpbqtGoTd2koZ//cQYMFJW5+Xll SHGVPSEgrqmp1/NzQPDPdHnbepNnhviadMvDH1GskI7kB1+w3s7JNAdIkx4JH+mQyBQsxZibb 8/E/QavgemzuWR1RtBqh/O9ecTLHcIauF36RQo/6H2hGrnZ6qq8oXewPvw/VcYbHYHLUY61M+ ygjgFgIkDy4bc/TJ42IPrfyDP8CEAnRmCr1vdL0JXqlXg= Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Gabriele Nicolardi , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > I can't find a commit "ac89b1141a26" in my repository, though. Where > does your Emacs come from (is it maybe a modified version)? Forget this question please. I can now reproduce with master, too. But: This is only reproducible when I build Emacs with native compilation enabled. Then I get this backtrace with your recipe: | Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) | forward-paragraph(1) | fill-forward-paragraph(1) | fill-region(11 528 left t) | easy-mmode--mode-docstring("MWE mode" "Mwe mode" mwe-mode-map mwe-mode nil) | #f(compiled-function (arg1 arg2 &rest rest) "Define a new minor mode MODE.... | elisp--eval-last-sexp(nil) When I load the source of paragraphs.el (where `forward-paragraph' is defined) the problem goes away. Maybe Andrea can help? Just CC'd - I don't know how to continue here. Thx, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 07 11:27:26 2024 Received: (at submit) by debbugs.gnu.org; 7 Mar 2024 16:27:26 +0000 Received: from localhost ([127.0.0.1]:54780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riGab-0005rc-Ev for submit@debbugs.gnu.org; Thu, 07 Mar 2024 11:27:25 -0500 Received: from lists.gnu.org ([209.51.188.17]:51470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riGaZ-0005rP-BB for submit@debbugs.gnu.org; Thu, 07 Mar 2024 11:27:24 -0500 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 1riGa3-000255-FW for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 11:26:51 -0500 Received: from smtp04.cbsolt.net ([185.97.217.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riGZy-0008S8-9x for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 11:26:51 -0500 Received: from [10.0.2.15] (host-79-16-242-199.retail.telecomitalia.it [79.16.242.199]) by smtp04.cbsolt.net (Postfix) with ESMTPSA id 4TrF7322wvz3wf6; Thu, 7 Mar 2024 17:26:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net; s=201504-di4k2w; t=1709828800; bh=yIFKCxjmIVUcLnmjvQqPky+QrcUOOjDKGHuNdG/xKtE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=vKib1FFB9yDogBBMxkdNJEHkyHVRtS0UH2oNXDQt9ksHCuCuD6nlOuihA55JLO2Gd Ax4Ao/LNGP7KjhhXJElUBSDhuDxH8eJuC/dTgTAOzeXIdR/lf+V+sW/87RD6SzRI03 H5dV9xn7DfaFXzwa8i0D9QiOTJOycbYl1MphnzyY= Content-Type: multipart/alternative; boundary="------------mE3Q0ILfQFw0xPv25Lm0iak9" Message-ID: Date: Thu, 7 Mar 2024 17:26:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Content-Language: en-US To: Michael Heerdegen , Michael Heerdegen via Bug reports for GNU "Emacs," the Swiss army knife of text editors 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> From: Gabriele Nicolardi In-Reply-To: <871q8mbn7e.fsf@web.de> Received-SPF: pass client-ip=185.97.217.43; envelope-from=gabriele@medialab.sissa.it; helo=smtp04.cbsolt.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --------------mE3Q0ILfQFw0xPv25Lm0iak9 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 07/03/24 06:55, Michael Heerdegen ha scritto: > Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife > of text editors" writes: > >> I can't find a commit "ac89b1141a26" in my repository, though. Where >> does your Emacs come from (is it maybe a modified version)? > Forget this question please. I can now reproduce with master, too. > > But: This is only reproducible when I build Emacs with native > compilation enabled. Then I get this backtrace with your recipe: > > | Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) > | forward-paragraph(1) > | fill-forward-paragraph(1) > | fill-region(11 528 left t) > | easy-mmode--mode-docstring("MWE mode" "Mwe mode" mwe-mode-map mwe-mode nil) > | #f(compiled-function (arg1 arg2 &rest rest) "Define a new minor mode MODE.... > | elisp--eval-last-sexp(nil) > > When I load the source of paragraphs.el (where `forward-paragraph' is > defined) the problem goes away. I confirm that evaluating paragraphs.el makes the problem go away. But why? I create a copy of the `re-search-forward` function because I DON'T want advice the original function: ;; The following breaks my minor-modes definitions (advice-add 're-search-forward-ifpmod :around #'make-search-sensitive-to-ifpmod-advice) Why `forward-paragraph` should be sensitive to a function `re-search-forward-ifpmod` that it doesn't call? Is my code wrong in some way? I mean that I think that (defalias 're-search-forward-ifpmod (symbol-function 're-search-forward) "Copy of `re-search-forward' function (to be) adviced to obey to `isearch-filter-predicate'") should create a COPY, not an ALIAS, of the `re-search-forward` function indipendent of the original function. Anyway, how can I force the loading of paragraphs.el? I don't se the "provide" feature and I need to share my code with my teammates. Gabriele Nicolardi > > Maybe Andrea can help? Just CC'd - I don't know how to continue here. > > Thx, > > Michael. --------------mE3Q0ILfQFw0xPv25Lm0iak9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit


Il 07/03/24 06:55, Michael Heerdegen ha scritto:
Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs@gnu.org> writes:

I can't find a commit "ac89b1141a26" in my repository, though.  Where
does your Emacs come from (is it maybe a modified version)?
Forget this question please.  I can now reproduce with master, too.

But: This is only reproducible when I build Emacs with native
compilation enabled.  Then I get this backtrace with your recipe:

| Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
|   forward-paragraph(1)
|   fill-forward-paragraph(1)
|   fill-region(11 528 left t)
|   easy-mmode--mode-docstring("MWE mode" "Mwe mode" mwe-mode-map mwe-mode nil)
|   #f(compiled-function (arg1 arg2 &rest rest) "Define a new minor mode MODE....
|   elisp--eval-last-sexp(nil)

When I load the source of paragraphs.el (where `forward-paragraph' is
defined) the problem goes away.

I confirm that evaluating paragraphs.el makes the problem go away.

But why? I create a copy of the `re-search-forward` function because I DON'T want advice the original function:

;; The following breaks my minor-modes definitions (advice-add 're-search-forward-ifpmod :around #'make-search-sensitive-to-ifpmod-advice)

Why `forward-paragraph` should be sensitive to a function `re-search-forward-ifpmod` that it doesn't call?

Is my code wrong in some way?

I mean that I think that

(defalias 're-search-forward-ifpmod (symbol-function 're-search-forward) "Copy of `re-search-forward' function (to be) adviced to obey to `isearch-filter-predicate'")

should create a COPY, not an ALIAS, of the `re-search-forward` function indipendent of the original function.

Anyway, how can I force the loading of paragraphs.el? I don't se the "provide" feature and I need to share my code with my teammates.

Gabriele Nicolardi


Maybe Andrea can help?  Just CC'd - I don't know how to continue here.

Thx,

Michael.
--------------mE3Q0ILfQFw0xPv25Lm0iak9-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 08 23:30:39 2024 Received: (at 69573) by debbugs.gnu.org; 9 Mar 2024 04:30:39 +0000 Received: from localhost ([127.0.0.1]:60192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rioM2-0004km-Uc for submit@debbugs.gnu.org; Fri, 08 Mar 2024 23:30:39 -0500 Received: from mout.web.de ([212.227.17.12]:50401) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rioLz-0004kU-Cq for 69573@debbugs.gnu.org; Fri, 08 Mar 2024 23:30:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1709958593; x=1710563393; i=michael_heerdegen@web.de; bh=QlwE/EwIHNvC73c7ls+AAitztLg2M5TQChEZT+qFiFY=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=pSs4x3f0V+Ok7DuyJn90xIAcZ1ORUtDJvrWRp/XtEHNXsEjU63ZwKD25MHEuHdAN IqAgVdZFPpx3Gl0e2sXqgLBWtyshWwllHuJlS2tDblTH+4TQZei3FMLTYYCWGViUQ EqlYsaszlHe5SpWPGfTGpNlSGjBjPNrRz9B91SQ+TxUi2h5BVK1xmFi0Uc0aX1AVH S1cG1cY+RBNk+N802WULBGpo0u7Fn3T5nRp0/eTIYdUjf82KryC87CA3S7h4/arlG SJ6oF1N2CdHEegDUd7MP2xcQfzBTJLHufWiMXr1gHL7e+u/uDS+JBc/wGx7BU6v2I /rIZh65yP/3MuAM5Yw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.76.229.82]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MgzaR-1rCWKq0paP-00gz7P; Sat, 09 Mar 2024 05:29:53 +0100 From: Michael Heerdegen To: Gabriele Nicolardi Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: (Gabriele Nicolardi's message of "Thu, 7 Mar 2024 17:26:37 +0100") 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> X-Debbugs-Cc: Stefan Monnier Date: Sat, 09 Mar 2024 05:30:24 +0100 Message-ID: <87zfv8uivz.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:FBeeJYHuhx8tPhawUO4J+u4VHrxq2unV6R5xFbXAffacxKxwA7M CqwmzjXKOovQRJKeFQZ255jabivib8r54k3qBJFcdeq/azG/cgeRrc+QqWGxZDLkoJv1Yke oDVeEfzIogTEmrAiAnerViidc28N1lBuSgM1qwiXndsd6ZuGT5AMWy3ze1UveUpUyy0qruX i0vhk4mqdyZSf667yZJMg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:lLpaG24KCMc=;11nFAiE04XJx1wbexQ3CEp3rZCg sF0XeXkMgpBKaJzY0aSOreImZSJRGTUVn/bkkg+F+KLy52eoWeSGq7lXgS52uQXv0M6aVJz4V 0n89TdJCNHR3WAVu4n3oajzpYo5Bb6k5fECoPZzU/P1dDSAjap1jqFOsqggDjYps/lbACNPjB 6psIvPNsP06sX9zVJfabvP5/g7r2bLohh6+jspoHe9aiUR4mv3ijNP/U+GAh9e/XelC9eaKCR 7V4b85j8gu3gi5XjAptfZH/TSO4eDbeQZ4fqZ8Jt0OXD4UoKKBgSYBk6EknGG35ySRMNDo739 7SXmPx1AABy1HMIek2DGE1upfDAPMssd5jurHdfvlx9ziyyXN4kR4h4hShgae9COuMqw3dDFi VqKU964309BnxoflkgqW2vwvdi1M9/VH3sA2MDw61ZkxURCfDykU9S8InHstagszu1f/fElB6 dXbFjOWz8WDJkeZWbS+pwnPm0hrj56cio8XCszmnZx8sxpfSW/SBL6XIderUHhiRuygWo2Jjx dWNIOMpTJcGUQ9/ih6qq7HSGG6qwlRk5hhhg3bW9YgrIeARn3vvmu472YD7Xpqv4KK/s7mraO rt75UY5LYIiAZUDBTq8fotAUf7MZ4jURQj9tBpJ8hh98WsdnqTfQ+RvdIlg1sRa6UPCe8kT2u HjY11CUx7wM+BElaT70lCYtuA2GbyB+tw3oUqe73de7SuEArDgV6QyLIrexjPKNfkx6alG3Dx nvU8kAmKE8SsXlVNxV4JoTIanqntG+QgfKzmTfqawDVnxsHXrehRgAPNECkZTgdsBcoFPZEsA rL3J0E/KebFMcQHCjKLGZ8gggIhqfD1UyX6LTDaNb5MPM= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 69573 Cc: 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gabriele Nicolardi writes: > Is my code wrong in some way? I don't know. > I mean that I think that > > (defalias 're-search-forward-ifpmod (symbol-function 're-search-forward)= "Copy of > `re-search-forward' function (to be) adviced to obey to `isearch-filter-= predicate'") > > should create a COPY, not an ALIAS, of the `re-search-forward` > function indipendent of the original function. Stefan, can you help maybe? Gabriele then does this: #+begin_src emacs-lisp (advice-add 're-search-forward-ifpmod :around #'make-search-sensitive-to-ifpmod-advice) #+end_src and we have found that this causes weird errors because at least some definitions, like `forward-paragraph', call `re-search-forward-ifpmod' afterwards. This seems to happen only when using a native compiled Emacs, and the effect disappears when loading the source - paragraphs.el in this case. Is this normal? Michael From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 08 23:33:25 2024 Received: (at 69573) by debbugs.gnu.org; 9 Mar 2024 04:33:25 +0000 Received: from localhost ([127.0.0.1]:60197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rioOj-0004os-K3 for submit@debbugs.gnu.org; Fri, 08 Mar 2024 23:33:25 -0500 Received: from mout.web.de ([212.227.17.12]:49269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rioOi-0004og-1N for 69573@debbugs.gnu.org; Fri, 08 Mar 2024 23:33:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1709958763; x=1710563563; i=michael_heerdegen@web.de; bh=scMopXITA89Q7E7yMjpWLbZsOs7PqusrE7itKiJdxgQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=Anoc2Q/HqsALtcL+xIAayRfPXW/3XParzfnqT4MDBT0AYLbF6bxdTEdo5dCp+u2x 99yGpp6T/PHJzdDcrelzEnhiY7LMaP0eRZFz4XFfQw49/fq6zRffSdXKNKFa366Sv wJ7HZ1/Jal4kh3cUjFp807vjDdZ6CnCmJwVWdoff+Auhp9RCzVD554uIepfsThi70 gEqitD00ULt+SWirygPcDOhoQQQ996b7ymDHlPEN5ptoKi+Qd9SriRfgpapCztjEq H09T7+FUqo5ZQlx2m7Metucei5efv+bFMvBsPV4zaC0V04hAdi+Kn+STvux94BNcE D00rrBJAyT9/a3jGPw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.76.229.82]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MgRM5-1rByLN3oOV-00hWrB; Sat, 09 Mar 2024 05:32:43 +0100 From: Michael Heerdegen To: Gabriele Nicolardi Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: (Gabriele Nicolardi's message of "Thu, 7 Mar 2024 17:26:37 +0100") 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> Date: Sat, 09 Mar 2024 05:33:14 +0100 Message-ID: <87v85wuir9.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:a49NZJTFOvKUE6lDqsy3gGyvnRq19+vW5UuuLhqRZm/x4JfT3B5 oNXAvBX98hYi58Rubf0kNRIa4O0d/O2p/l0dfCYj1fy6xIuQMEeZVzT4Eydse+4Pcil6rO9 5VcXqqq5vjfgQByg+gjMhysu66vtmTtASD9V6QL1/n8njpe/cgRXDGWlqvoIl8m1VmLdBVI DIi0So+9JEhof4q3Sjb2A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:/yPJKaK9vqU=;w+anMIdlakqMY+OwaCNx6ykQgsw aM02VRNicXoK2Aqxw6YQfdl0wiO3TpsADIs5zSmVwrrDcQfy0sJKroI4OivHaayVJsKrPk+/M QS3ShwZR5Zh89IfZC2O/qsS3utWPpUHmqiL+Y0Q+eM4AbWadhMIFBY6WlMAzi/RvwAwp/hvcZ yjBFzRZlgF4yrWWdWyDqnsPODnqfefmEgzLPMmjBS5T070I6zVWF43zpyJz5cANB99ODD+v5w c7dis6xI1FAzmF3Lg48UXLb4h9WnMlW+4178se5jPAEQDZywCABL9U77eY3+qbBAaY5XHSVfy Oo3AkFmu9GHJHtgMLFgf4NCYIz3hJ4DzQMCSMG1xe+3aB9rzvEdR/PBHti6rI6N8DfJb1iG5V kxqd/7ybiOrBsAbnTEp5ueEpdNfeETmuohNNrLRGDFQLdfeoU3L7+/faISO9p8E/JY8tpxj2f Rc5odwxY+OZ79i+2/MPuaNrTk3HB5e822GE2kwW5c8p0+G255vnJ+hdC0RcBqTdOHKP63s8xJ zUhnj4ZwCa70s9tpKbI8Yyjb/IqBnUmRFgX38rhOjIjRR/qUHTwwV1XqURNvRRjb73NC2IZ7g lP29BIeoIwxv4lwSf4pvR+lmjoTwOdHbZRf33gb6oEIz16efAt6vQQOUyLYrmYeGwKzbD2pye GCJWpj2ATSukl0O/TdO1Uy1QbgVmX+9GpMvMVmZS/jIaz4SCFF0zE9+q8J03Unnlk3AkdiBtG ZY3FT/I1ju49Vj68AqNt8xSn4SZi+oWfPeGJj/1BKoBu4xgvVHDXhZlC0qsNv7GlanddcXVzM aFVBMxeUtZNQF8OHq1OXbR66JAJZc1ySVfJJlZZzXnp9w= X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 69573 Cc: 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gabriele Nicolardi writes: > Anyway, how can I force the loading of paragraphs.el? I don't se the > "provide" feature and I need to share my code with my teammates. `load'. But I think this would only work around one symptom, and I guess more things are broken by your advice. Let's first wait for someone who understands better what's going on, ok? Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 09 02:15:37 2024 Received: (at 69573) by debbugs.gnu.org; 9 Mar 2024 07:15:37 +0000 Received: from localhost ([127.0.0.1]:60382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riqvh-0000zX-Fj for submit@debbugs.gnu.org; Sat, 09 Mar 2024 02:15:37 -0500 Received: from smtp04.cbsolt.net ([185.97.217.43]:33602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riqvc-0000zC-3E for 69573@debbugs.gnu.org; Sat, 09 Mar 2024 02:15:35 -0500 Received: from [10.0.2.15] (host-79-45-241-136.retail.telecomitalia.it [79.45.241.136]) by smtp04.cbsolt.net (Postfix) with ESMTPSA id 4TsDnR5JGRz3wg1; Sat, 9 Mar 2024 08:14:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net; s=201504-di4k2w; t=1709968493; bh=QPLuFeKDvGYVpWGrWOnqSCd+zMmVirzZDU50BS6ldhc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=oRqE4Q+yExpbgdqhezMJ0lSwxO/uv9zmr5r/NkkETgD0kcDv7Sm0a5JkSIe/teRdJ YVH/mHdZVRnQ+qtENdfgkG011EaOUrUr9bWRoZMGdr6WWDcG16zaphPtCdyIxPyZ9y OgFr1Nwq+ePFlMiWilphUosv2txZ+iuUK0dU+J3k= Content-Type: multipart/alternative; boundary="------------Twbp872byKGpB0mNc3tTqZSc" Message-ID: Date: Sat, 9 Mar 2024 08:14:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Content-Language: en-US To: Michael Heerdegen 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> <87v85wuir9.fsf@web.de> From: Gabriele Nicolardi In-Reply-To: <87v85wuir9.fsf@web.de> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69573 Cc: 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) This is a multi-part message in MIME format. --------------Twbp872byKGpB0mNc3tTqZSc Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 09/03/24 05:33, Michael Heerdegen ha scritto: >> Anyway, how can I force the loading of paragraphs.el? I don't se the >> "provide" feature and I need to share my code with my teammates. > `load'. But I think this would only work around one symptom, and I > guess more things are broken by your advice. Let's first wait for > someone who understands better what's going on, ok? > > Michael. Ok, thanks --------------Twbp872byKGpB0mNc3tTqZSc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Il 09/03/24 05:33, Michael Heerdegen ha scritto:
Anyway, how can I force the loading of paragraphs.el? I don't se the
"provide" feature and I need to share my code with my teammates.
`load'.  But I think this would only work around one symptom, and I
guess more things are broken by your advice.  Let's first wait for
someone who understands better what's going on, ok?

Michael.
Ok, thanks
--------------Twbp872byKGpB0mNc3tTqZSc-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 09 09:47:49 2024 Received: (at 69573) by debbugs.gnu.org; 9 Mar 2024 14:47:49 +0000 Received: from localhost ([127.0.0.1]:32771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rixzJ-0008Md-6e for submit@debbugs.gnu.org; Sat, 09 Mar 2024 09:47:49 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:48998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rixzH-0008MQ-0q for 69573@debbugs.gnu.org; Sat, 09 Mar 2024 09:47:48 -0500 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id A8C7A80CC9; Sat, 9 Mar 2024 09:47:08 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1709995627; bh=3ajoPY2Vhjr7n8t5rDdPQa3dQ9PzEmROpMv6xKG/t3o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=DrVywGu8jm9iQwPQTX1spPPMw5mm/R9xhUhW/2CTaaqFJtJb5IBqZL+rmOFYjrKXV 8dvcAv7RmVGsUkwR1yl1u6I9BTwJGAbNTM98+wvuPiIVtigfq+6tt45yxBdCbHjhSM VyaXatqRDzE2lmhumuS9dDMek9VNI+L0BXWka3Ck962UlBDLKbOTJ8LJndA/ozWOiC dMOS5nZ3jHrWyr5Gei6EUwQ4wtxmV/VZU8o9YCvUGZzVgCcgj5p3qSqSHieRtGplL7 IBQ3kz7JTrvcfpHtFtmSJoibI+BI8M/uRKW/fFzWnUDGXPT3aby2Ic8qwVE9BSwl/y +ZBYDXZx8Axsw== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B5A0380799; Sat, 9 Mar 2024 09:47:07 -0500 (EST) Received: from pastel (69-165-153-56.dsl.teksavvy.com [69.165.153.56]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 844CD1203C3; Sat, 9 Mar 2024 09:47:07 -0500 (EST) From: Stefan Monnier To: Andrea Corallo Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: <87zfv8uivz.fsf@web.de> (Michael Heerdegen's message of "Sat, 09 Mar 2024 05:30:24 +0100") 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> Date: Sat, 09 Mar 2024 09:47:06 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.000 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , Gabriele Nicolardi , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> (defalias 're-search-forward-ifpmod (symbol-function 're-search-forward) ...) [...] > Stefan, can you help maybe? Gabriele then does this: [...] > and we have found that this causes weird errors because at least some > definitions, like `forward-paragraph', call `re-search-forward-ifpmod' > afterwards. This seems to happen only when using a native compiled Sounds like a problem in the code that installs trampolines. Andrea? If we look at `fset`, the C code does: if (!NILP (Vnative_comp_enable_subr_trampolines) && SUBRP (function) && !SUBR_NATIVE_COMPILEDP (function)) CALLN (Ffuncall, Qcomp_subr_trampoline_install, symbol); so indeed if the SUBR_NATIVE_COMPILEDP function is stored in another symbol, we will still call Qcomp_subr_trampoline_install, even tho it's a case where it should not be necessary, and I suspect this can lead to the kind of problems mentioned above, if we do something like (defalias 'foo (symbol-function 'bar)) (fset 'foo ) where native calls to `bar` could end up redirected to the definition of `foo` :-( Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 09 16:43:55 2024 Received: (at 69573) by debbugs.gnu.org; 9 Mar 2024 21:43:55 +0000 Received: from localhost ([127.0.0.1]:34938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj4Ty-0002sT-Mw for submit@debbugs.gnu.org; Sat, 09 Mar 2024 16:43:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj4Tv-0002sE-8q for 69573@debbugs.gnu.org; Sat, 09 Mar 2024 16:43:53 -0500 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 1rj4RC-00063o-JC; Sat, 09 Mar 2024 16:41:02 -0500 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=7qpkuhEyL5o/CXL3CBBS1Zho+4PGXa9OovdkRowLakA=; b=B6+EV7a9mQJLM2gWN6mQ JHdaexiAE9dLx/KDxM30gLfC4FI8RvC3Sj61Oa4Q66EETaCOkNNPJeuJH1kbWlc6TBqYJKD5MS4NF +sUOKovmxkKg1iOD1dDV5PfU1F7j11K8gUIUpIBDZUb782O9/fJ7KKlR3sGfK7/PkZ62WvF3RY2su aTvgUc6sqyYTW/PFKoS6qUvcFmPKp28sH1pyoOTBps7TMQbIu2yEDPUF6jXITYtM5uBWTVIjcdQQG 2Pxd8WYzsgsN0TLP/4unvBnbom803i6p6lWGI3xNzibk1LzEbeuBcbz71q3xAHIcqDwae5gvKKRUN CrTIKc/bh9GzxQ==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rj4RC-0007kX-BD; Sat, 09 Mar 2024 16:41:02 -0500 From: Andrea Corallo To: Stefan Monnier Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: (Stefan Monnier's message of "Sat, 09 Mar 2024 09:47:06 -0500") 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> Date: Sat, 09 Mar 2024 16:41:02 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , Gabriele Nicolardi , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: >>> (defalias 're-search-forward-ifpmod (symbol-function 're-search-forward) ...) > [...] >> Stefan, can you help maybe? Gabriele then does this: > [...] >> and we have found that this causes weird errors because at least some >> definitions, like `forward-paragraph', call `re-search-forward-ifpmod' >> afterwards. This seems to happen only when using a native compiled > > Sounds like a problem in the code that installs trampolines. > > Andrea? > > If we look at `fset`, the C code does: > > if (!NILP (Vnative_comp_enable_subr_trampolines) > && SUBRP (function) > && !SUBR_NATIVE_COMPILEDP (function)) > CALLN (Ffuncall, Qcomp_subr_trampoline_install, symbol); > > so indeed if the SUBR_NATIVE_COMPILEDP function is stored in another > symbol, we will still call Qcomp_subr_trampoline_install, even tho it's > a case where it should not be necessary, and I suspect this can lead to > the kind of problems mentioned above, if we do something like > > (defalias 'foo (symbol-function 'bar)) > (fset 'foo ) > > where native calls to `bar` could end up redirected to the definition of > `foo` :-( Here I'm, mmmhh, I'm really not sure why calling Qcomp_subr_trampoline_install should be problematic. I'll look at it, but this week I'm on holiday so might take a bit more :) Bests Andrea From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 09 16:49:07 2024 Received: (at 69573) by debbugs.gnu.org; 9 Mar 2024 21:49:07 +0000 Received: from localhost ([127.0.0.1]:34943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj4Z1-00033t-Gq for submit@debbugs.gnu.org; Sat, 09 Mar 2024 16:49:07 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:11891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj4Yw-00032d-Tb for 69573@debbugs.gnu.org; Sat, 09 Mar 2024 16:49:05 -0500 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 65C2380C35; Sat, 9 Mar 2024 16:48:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1710020903; bh=x93nhdBGxSpTeKiaFTMT9KrhaCQXDk37uFb2WvcHVy8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=S6NHAUllJ01IGOhRmNNTsUGTLRNHYVN0TRc7Eq1gGjuwYzU6fq4To9J2ERgkUCcRX AwG6vB59hCZXw9v7+LBncUpeHmDHpbFdDylZrVEjG1oPSZD2cO2wm0CKV1ZWavJmd5 JY8MplXRi/OaLMJmVR532rUWAwpy3VZvM/1/kkezJIvS6tTFsOYqbMmK0DTku/gGcg XNrKtx3T+ZZkdKxjn+h8P3RcQu5Vja+61FX/3ZT4lyqfiUFDeu4Mtc0fvR23RNOReW +qBBlwurjJdOQ0PZ3iYg6C4R5Gi56lTcxZaJNq57JFDEEIRrxk5/LTYq/Fcb24lfNi RZvbpfaBCUO7g== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 067E0801CC; Sat, 9 Mar 2024 16:48:23 -0500 (EST) Received: from pastel (69-165-147-56.dsl.teksavvy.com [69.165.147.56]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id CCE6912046C; Sat, 9 Mar 2024 16:48:22 -0500 (EST) From: Stefan Monnier To: Andrea Corallo Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: (Andrea Corallo's message of "Sat, 09 Mar 2024 16:41:02 -0500") 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> Date: Sat, 09 Mar 2024 16:48:22 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , Gabriele Nicolardi , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > mmmhh, I'm really not sure why calling Qcomp_subr_trampoline_install > should be problematic. I'll look at it, but this week I'm on holiday so > might take a bit more :) I'm not completely sure either, but the arg of `comp-subr-trampoline-install` is called `subr-name` whereas the value we pass there is the symbol that was found to contain that subr but is *not* the name of the subr (and when that's the case, there's simply no need to install any trampoline). So, I'd expect `comp-subr-trampoline-install` to compare its argument with the actual name of the subr (presumably extracted from the subr), but I don't see any such test. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 15 09:55:22 2024 Received: (at 69573) by debbugs.gnu.org; 15 Mar 2024 13:55:22 +0000 Received: from localhost ([127.0.0.1]:52518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rl81q-0001gF-8C for submit@debbugs.gnu.org; Fri, 15 Mar 2024 09:55:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rl81n-0001eW-Lq for 69573@debbugs.gnu.org; Fri, 15 Mar 2024 09:55:20 -0400 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 1rl7yy-0000q2-BR; Fri, 15 Mar 2024 09:52:25 -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=oJco95EEUaJmNGgUecw3+DtFu66iQcnfcXnR+ZYVzE4=; b=Lb74Oe+WLt9Kfda1qece yqZiqysYRfglO8+QA2ioNem27Fc7Xmi4QV7qFQmPg6BZbUa0BErHAbsO7yF+8X0wcIQJRieENuh5q gveffhTaGtuonGtoUaOUzLamsn0VTs/gngOQ1e71Ij9w2UqaxUV+2jLfLmkdJQtiedVNFiBANvEYU QBEtPiVtuTsWapYZgTrAdCbRfd2DN5LTNq19tDgGS4k8j5jgDLx6mUoy1jG2PC2f8xEzt8SRDGDOu 6VOq2tdkpcBOFYaub0Ct+4zpyrUAwgns8EXEGRB6wYA26P/O45tEptUiE7cbUjdc/cdN9D3H1+CSx Vf4Ad9Z3jY6JZg==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rl7yx-0003lu-CK; Fri, 15 Mar 2024 09:52:24 -0400 From: Andrea Corallo To: Stefan Monnier Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: (Stefan Monnier's message of "Sat, 09 Mar 2024 16:48:22 -0500") 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> Date: Fri, 15 Mar 2024 09:52:23 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , Gabriele Nicolardi , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: >> mmmhh, I'm really not sure why calling Qcomp_subr_trampoline_install >> should be problematic. I'll look at it, but this week I'm on holiday so >> might take a bit more :) > > I'm not completely sure either, but the arg of > `comp-subr-trampoline-install` is called `subr-name` whereas the value > we pass there is the symbol that was found to contain that subr but is > *not* the name of the subr (and when that's the case, there's simply no > need to install any trampoline). > > So, I'd expect `comp-subr-trampoline-install` to compare its argument > with the actual name of the subr (presumably extracted from the subr), > but I don't see any such test. Okay I've installed 00553628558 into master, I believe it does what we want and seems to fix the minimal reproducer I made from the original example. Gabriele could you check it solves the issue for you? Now thinking about, I think we should install it into 29 if it proves to be the right fix. Thanks! Andrea From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 15 10:37:12 2024 Received: (at 69573) by debbugs.gnu.org; 15 Mar 2024 14:37:12 +0000 Received: from localhost ([127.0.0.1]:53571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rl8gI-0002wP-74 for submit@debbugs.gnu.org; Fri, 15 Mar 2024 10:37:12 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:15353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rl8g0-0002vb-TC for 69573@debbugs.gnu.org; Fri, 15 Mar 2024 10:37:09 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 0A137440C7A; Fri, 15 Mar 2024 10:36:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1710513368; bh=nE2gX0VQxuakUrEEZ2mdY9Wuzk4pxqH+DmfTEl4DzZM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=INcCRo1OItpMWh2cKCHUty9d0unwomVutRxybfyvv2ZIrQsLtubDcONpUQhm6sB/g 9yMLoXhmoYpZzaIIBDrxckSlLh05EDbuoLXcPJwDZRJgovC0lrtuWgvZQplGq1kUXy 19Dvm9dgiYZzlJedqUhZVLiWSxPUK6d1AjFn6BVaVC6/Z0RSFvqpSrftzAPq7NJf/7 APzp1Xie7wkEFL/a0CGbhiGmMG836XR79BxLBVsnmceZV+BZIbTgncwB3v+8D36ZNf xQ4swut2O6/Iijy5Y4brbsPpMWTQl+BLynto6yWdirFXVdCFJ9LVmEX46CJYPRYkhV 7O2p6kBbyw9aw== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B7049440C5C; Fri, 15 Mar 2024 10:36:08 -0400 (EDT) Received: from pastel (unknown [216.154.27.181]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 873521206AC; Fri, 15 Mar 2024 10:36:08 -0400 (EDT) From: Stefan Monnier To: Andrea Corallo Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: (Andrea Corallo's message of "Fri, 15 Mar 2024 09:52:23 -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> Date: Fri, 15 Mar 2024 10:36:07 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.569 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , Gabriele Nicolardi , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Okay I've installed 00553628558 into master, I believe it does what > we want and seems to fix the minimal reproducer I made from the > original example. Oh, nice, that was easy. Thanks, Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 15 12:23:15 2024 Received: (at 69573) by debbugs.gnu.org; 15 Mar 2024 16:23:15 +0000 Received: from localhost ([127.0.0.1]:53626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlAKw-0000S7-V5 for submit@debbugs.gnu.org; Fri, 15 Mar 2024 12:23:15 -0400 Received: from smtp06.cbsolt.net ([185.97.217.45]:48040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlAKt-0000Rr-Lv for 69573@debbugs.gnu.org; Fri, 15 Mar 2024 12:23:13 -0400 Received: from [10.0.2.15] (host-79-45-241-136.retail.telecomitalia.it [79.45.241.136]) by smtp06.cbsolt.net (Postfix) with ESMTPSA id 4Tx8fX5xY0z3wZG; Fri, 15 Mar 2024 17:22:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net; s=201504-di4k2w; t=1710519749; bh=MAZJelXPcOVWhIU3dO+Cu+ceux0wOLMbmtT2gTLnwU0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Z8FUFve5w1GsimoT798CLcq4AdzT/kS745wwvbIkSJMFP+w7sMLDHG3LLJ/E//CiZ hvX3QwjpdHIz+DWm3mRaZFKtefrFYaqwwGY4ejowecN5hqb0aWLPIK3tl5viuRmX6t t4seiaEvDnkqkR+ukHR30iR55rCKoVuW2LVUXlxI= Content-Type: multipart/alternative; boundary="------------weGr04od9PNkoboSHrTY6N0s" Message-ID: Date: Fri, 15 Mar 2024 17:22:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Content-Language: en-US To: Andrea Corallo , Stefan Monnier 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> From: Gabriele Nicolardi In-Reply-To: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) This is a multi-part message in MIME format. --------------weGr04od9PNkoboSHrTY6N0s Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 15/03/24 14:52, Andrea Corallo wrote: > Okay I've installed 00553628558 into master, I believe it does what we > want and seems to fix the minimal reproducer I made from the original > example. > > Gabriele could you check it solves the issue for you? 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. > Now thinking about, I think we should install it into 29 if it proves to > be the right fix. This would be desirable since the version provided by snap is indeed 29. Thanks! Gabriele > Thanks! > > Andrea --------------weGr04od9PNkoboSHrTY6N0s Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Il 15/03/24 14:52, Andrea Corallo wrote:
Okay I've installed 00553628558 into master, I believe it does what we
want and seems to fix the minimal reproducer I made from the original
example.

Gabriele could you check it solves the issue for you?
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.
Now thinking about, I think we should install it into 29 if it proves to
be the right fix.
This would be desirable since the version provided by snap is indeed 29.

Thanks!

Gabriele
Thanks!

  Andrea

--------------weGr04od9PNkoboSHrTY6N0s-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 15 12:59:26 2024 Received: (at 69573) by debbugs.gnu.org; 15 Mar 2024 16:59:26 +0000 Received: from localhost ([127.0.0.1]:53653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlAtu-0001Xq-Mh for submit@debbugs.gnu.org; Fri, 15 Mar 2024 12:59:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlAth-0001X8-D7 for 69573@debbugs.gnu.org; Fri, 15 Mar 2024 12:59:21 -0400 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 1rlAsp-0001Pl-Ov; Fri, 15 Mar 2024 12:58:25 -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=gZJEW5o2cWYqtXmZIz274WEn/txs8QbEg9VQ45PrLyY=; b=fTikuYj74MVPN1pQSEXS fFXn79u6LCuUwhIIvCa3VyUKDZgmCQWyuSYN0JBsOMyrdu/ipU40xOuAtg39BN2cVxxtDM1xNOzTW MZ6vHThn0GY8VFb2Img+u3i+h+IMkmA9CD3MljnMtrZpIZOm1/vX5a/x30pOFBUyoijLEPZy6ccA/ C0l1gDlyjE4DSZ24tOyeofokO9boBxumg1e3tsWtKS18SF9bO52xS14x8znCBorBtw8rDyQFGHauw wByU5jGNj2Ub+ohLPwqKi+fPmtO/4kp2OuQSvm0lfKF3U5tFpndQ8iuMsN3eXfzi1k0NraFi47pv8 5Zl6dqiyEIxzSQ==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rlAso-0002U8-6d; Fri, 15 Mar 2024 12:58:15 -0400 From: Andrea Corallo To: Gabriele Nicolardi Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: (Gabriele Nicolardi's message of "Fri, 15 Mar 2024 17:22:26 +0100") 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> Date: Fri, 15 Mar 2024 12:58:14 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , Stefan Monnier , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gabriele Nicolardi writes: > Il 15/03/24 14:52, Andrea Corallo wrote: > > Okay I've installed 00553628558 into master, I believe it does what we > want and seems to fix the minimal reproducer I made from the original > example. > > Gabriele could you check it solves the issue for you? > > 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. Something like this should do the job (you might need to install some package): $ git clone https://git.savannah.gnu.org/git/emacs.git $ cd emacs && ./autogen.sh && ./configure --with-native-compilation && make -j16 Once done you can run this emacs without installing it with $ ./src/emacs So if you wanted to use a VM not to install this particular Emacs it might not be necessary. > Now thinking about, I think we should install it into 29 if it proves to > be the right fix. > > This would be desirable since the version provided by snap is indeed 29. Once we are more confident is not causing issues I'll do it. Maybe we can revist this in few weeks, hopefully sitting on master we should get a report if something breaks. > Thanks! > > Gabriele Welcome :) Andrea From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 15 13:25:00 2024 Received: (at 69573) by debbugs.gnu.org; 15 Mar 2024 17:25:00 +0000 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 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 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== 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) 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) From: Stefan Monnier To: Gabriele Nicolardi Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: (Gabriele Nicolardi's message of "Fri, 15 Mar 2024 17:22:26 +0100") 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> Date: Fri, 15 Mar 2024 13:24:13 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.191 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , Andrea Corallo , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 17 05:31:22 2024 Received: (at 69573) by debbugs.gnu.org; 17 Mar 2024 09:31:22 +0000 Received: from localhost ([127.0.0.1]:57650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlmrS-0006sR-Gq for submit@debbugs.gnu.org; Sun, 17 Mar 2024 05:31:22 -0400 Received: from smtp03.cbsolt.net ([185.97.217.42]:34392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlmrQ-0006s6-Qk for 69573@debbugs.gnu.org; Sun, 17 Mar 2024 05:31:21 -0400 Received: from [10.0.2.15] (host-79-45-241-136.retail.telecomitalia.it [79.45.241.136]) by smtp03.cbsolt.net (Postfix) with ESMTPSA id 4TyCQN2RhBz3wbT; Sun, 17 Mar 2024 10:30:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net; s=201504-di4k2w; t=1710667837; bh=tUjfziOL1n+ZLFgERLGEHQUX1WewIQr/Bf7oMi2GPIE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=aZM4nvvFd6MAwhm7ya+UsyAx3D4BSqRXUpZ87VcfBEWQNCkqP0hxd1X0EUe4n2sBm Di7WZD/xTE72MwtaSRU+oavsQncWrhp7WcPWp+Z9h1hrXyJNALklVqRJRzXURNlfSm CG9oWBMJDkQQGjfvh89RCYc8G8V/kgK33JPduSMM= Content-Type: multipart/alternative; boundary="------------KLZ1hSh48p1oqgokKFiWNFKP" Message-ID: <8f708e09-1e3f-4c96-b00a-9ed8eaeaac48@medialab.sissa.it> Date: Sun, 17 Mar 2024 10:30:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Content-Language: en-US To: Andrea Corallo 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> From: Gabriele Nicolardi In-Reply-To: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , Stefan Monnier , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) This is a multi-part message in MIME format. --------------KLZ1hSh48p1oqgokKFiWNFKP Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 15/03/24 17:58, Andrea Corallo ha scritto: > Something like this should do the job (you might need to install some > package): > > $ git clonehttps://git.savannah.gnu.org/git/emacs.git > $ cd emacs && ./autogen.sh && ./configure --with-native-compilation && make -j16 I was not able to build Emacs because of: configure: error: ELisp native compiler was requested, but libgccjit was not found. Please try installing libgccjit or a similar package. (I installed libgccjit-10-dev) Gabriele --------------KLZ1hSh48p1oqgokKFiWNFKP Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Il 15/03/24 17:58, Andrea Corallo ha scritto:
Something like this should do the job (you might need to install some
package):

$ git clone https://git.savannah.gnu.org/git/emacs.git
$ cd emacs && ./autogen.sh && ./configure --with-native-compilation && make -j16
I was not able to build Emacs because of:

configure: error: ELisp native compiler was requested, but libgccjit was not found.
Please try installing libgccjit or a similar package.

(I installed libgccjit-10-dev)

Gabriele
--------------KLZ1hSh48p1oqgokKFiWNFKP-- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 17 05:34:46 2024 Received: (at 69573) by debbugs.gnu.org; 17 Mar 2024 09:34:46 +0000 Received: from localhost ([127.0.0.1]:57654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlmuk-00070Z-5F for submit@debbugs.gnu.org; Sun, 17 Mar 2024 05:34:46 -0400 Received: from smtp03.cbsolt.net ([185.97.217.42]:58106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlmui-00070E-Ir for 69573@debbugs.gnu.org; Sun, 17 Mar 2024 05:34:44 -0400 Received: from [10.0.2.15] (host-79-45-241-136.retail.telecomitalia.it [79.45.241.136]) by smtp03.cbsolt.net (Postfix) with ESMTPSA id 4TyCVJ6Dl2z3wcp; Sun, 17 Mar 2024 10:34:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net; s=201504-di4k2w; t=1710668041; bh=8YVwmste5IuwDZsZX4uJ3xVLyzh2GR1zSvwV89VEXIs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=wHchP4o99lX8OjaBnoZy9qop2Pf45KYWXYZXOgkXi2OhDbhlnzCs77vaSYwavMqPg AZPwWh2dSipsTeK1iPzzIjTGvsNxORKaGySPw8hlAK+PdSjWp/mSjS+OVAeJdvaXme Fgeeh+aZnpsFnnI1ZndRh17Po1Db/Vn/r7ip9HvE= Message-ID: <4b0ffba9-7f12-4129-a64a-b187a15d5f2c@medialab.sissa.it> Date: Sun, 17 Mar 2024 10:33:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Content-Language: en-US To: Stefan Monnier 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> From: Gabriele Nicolardi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , Andrea Corallo , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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. Gabriele From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 18 05:38:26 2024 Received: (at 69573) by debbugs.gnu.org; 18 Mar 2024 09:38:26 +0000 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 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 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==; 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 From: Andrea Corallo To: Gabriele Nicolardi Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: <4b0ffba9-7f12-4129-a64a-b187a15d5f2c@medialab.sissa.it> (Gabriele Nicolardi's message of "Sun, 17 Mar 2024 10:33:59 +0100") 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> Date: Mon, 18 Mar 2024 05:35:11 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , Stefan Monnier , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 18 14:10:16 2024 Received: (at 69573) by debbugs.gnu.org; 18 Mar 2024 18:10:16 +0000 Received: from localhost ([127.0.0.1]:36581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmHR9-0000Lx-MG for submit@debbugs.gnu.org; Mon, 18 Mar 2024 14:10:16 -0400 Received: from smtp03.cbsolt.net ([185.97.217.42]:46978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmH4B-0007k8-FS for 69573@debbugs.gnu.org; Mon, 18 Mar 2024 13:46:33 -0400 Received: from [10.0.2.15] (host-79-45-241-136.retail.telecomitalia.it [79.45.241.136]) by smtp03.cbsolt.net (Postfix) with ESMTPSA id 4Tz1yn2XKNz3wft; Mon, 18 Mar 2024 18:28:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net; s=201504-di4k2w; t=1710782882; bh=WBJjlqmhBQTknoWXZ/G/R5P9v7esziNIj2S2v1EZqhk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gF1r9ENpXHif623O9xhxQuad1q6TxHTKvMUu3Zf+IdV4UbU5mtn2t/9KyGNXn/mVy YiH/MG97qYq19toZMmQErswF+xwbZ6t6gYwP2Hx8eCMT/md/UxK1IwESZcrHGl7G09 XUhSmS77K0mLj2SVjANHj8HNjsBB37vqya5UiTlI= Content-Type: multipart/alternative; boundary="------------EAURvnkPp4PFuhSrnAv5sCvZ" Message-ID: Date: Mon, 18 Mar 2024 18:28:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) Content-Language: en-US To: Andrea Corallo , Stefan Monnier 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> From: Gabriele Nicolardi In-Reply-To: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) This is a multi-part message in MIME format. --------------EAURvnkPp4PFuhSrnAv5sCvZ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 15/03/24 14:52, Andrea Corallo ha scritto: > kay I've installed 00553628558 into master, I believe it does what we > want and seems to fix the minimal reproducer I made from the original > example. > > Gabriele could you check it solves the issue for you? I confirm that the version compiled from master resolves my issue. Thank you! Gabriele --------------EAURvnkPp4PFuhSrnAv5sCvZ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Il 15/03/24 14:52, Andrea Corallo ha scritto:
kay I've installed 00553628558 into master, I believe it does what we
want and seems to fix the minimal reproducer I made from the original
example.

Gabriele could you check it solves the issue for you?
I confirm that the version compiled from master resolves my issue.

Thank you!

Gabriele
--------------EAURvnkPp4PFuhSrnAv5sCvZ-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 18 15:43:49 2024 Received: (at 69573) by debbugs.gnu.org; 18 Mar 2024 19:43:49 +0000 Received: from localhost ([127.0.0.1]:40284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmIte-00045D-JA for submit@debbugs.gnu.org; Mon, 18 Mar 2024 15:43:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmItZ-00044p-Gs for 69573@debbugs.gnu.org; Mon, 18 Mar 2024 15:43:45 -0400 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 1rmIsp-0002fM-5y; Mon, 18 Mar 2024 15:42:55 -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=yjtdUf1tVsoUNq5g7qXKCI36htXPQJf+j5WbeqabIXE=; b=ogz5aBIfeBT1079EAEcA SnAR520WxRHDwr3Sy+hjieZcIRmDv9mLbCgBeURxpG4+7T5Hyb7ifql7hiA4fGknDEmpBAetv3IzJ I8eZvdenwv/TZpTiFR0zi0Qh6Rb16Ygkvh2KsTdLVtBLHzWd68jE0+Wwy/Nhx5ZnpY5T2ls8oky/f jOSwKPigELzR0kdO3iwM7XaY2kcDeBkn1oE/24DTkP4E8nnrgqHJmiP7pQBKy91T0qDMpoCwh9PTp jWZjtN9QPV4Ktzxdtb9PzInIMn2w4YC3lsgwd4QSXlE49HIa6mJE4qIzyg1YWBKoVUQ6Xa8Oq4UIn lFnZ1V/znt6vIw==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rmIso-0004EN-Se; Mon, 18 Mar 2024 15:42:54 -0400 From: Andrea Corallo To: Gabriele Nicolardi Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: (Gabriele Nicolardi's message of "Mon, 18 Mar 2024 18:28:00 +0100") 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> Date: Mon, 18 Mar 2024 15:42:54 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69573 Cc: Michael Heerdegen , Stefan Monnier , 69573@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gabriele Nicolardi writes: > Il 15/03/24 14:52, Andrea Corallo ha scritto: > > kay I've installed 00553628558 into master, I believe it does what we > want and seems to fix the minimal reproducer I made from the original > example. > > Gabriele could you check it solves the issue for you? > > I confirm that the version compiled from master resolves my issue. > > Thank you! > > Gabriele Very cool. I'll keep this bug open a bit just so we remeber to re-evaluate the backport. Thanks! Andrea From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 26 09:44:50 2024 Received: (at 69573-done) by debbugs.gnu.org; 26 Mar 2024 13:44:50 +0000 Received: from localhost ([127.0.0.1]:33101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rp76g-0000fu-CN for submit@debbugs.gnu.org; Tue, 26 Mar 2024 09:44:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rp76d-0000eH-KX for 69573-done@debbugs.gnu.org; Tue, 26 Mar 2024 09:44:48 -0400 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 1rp1KZ-0005Sy-6J; Tue, 26 Mar 2024 03:34:47 -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=Fdv5eaijGj/SorUnryeG8d6GqZzAVLki1NIsbTFOnvQ=; b=qgpApQzloNyZPJCQ0xQs 4Oo8I78qk1nEiknRx9Yewdw0gE78owJiheG6P3Uf4Rq4tY/o0rLT1ymWAkQrwjXtz/a9krPCnnWdw 5VwUN9sgcQkHKILQOVq5C+qSwlYfwXZBkBDPzs8g/Vu5x2YIpdqnBRwLtPV8feYgaaZSgScJxuKoC yLqHQEsYS27CEjhqNejfjgKJ0zjOwaCqCDy8R9DEi+wOunyOc71iCPv4fbYOW+JXDTn0JcCujxyes 1T17sdZCAukA9sw4VGc6nwvNI8ZMDMFYhPLySyVkbiNNIDTSxjv7HOqwJaSqlqjD20fAtOw1e6yLk 05CQeZ+QkUhjbA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rp1KY-0006el-WA; Tue, 26 Mar 2024 03:34:47 -0400 From: Andrea Corallo To: Gabriele Nicolardi Subject: Re: bug#69573: Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil) In-Reply-To: (Andrea Corallo's message of "Mon, 18 Mar 2024 15:42:54 -0400") 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> Date: Tue, 26 Mar 2024 03:34:46 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69573-done Cc: Michael Heerdegen , Stefan Monnier , 69573-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andrea Corallo writes: > Gabriele Nicolardi writes: > >> Il 15/03/24 14:52, Andrea Corallo ha scritto: >> >> kay I've installed 00553628558 into master, I believe it does what we >> want and seems to fix the minimal reproducer I made from the original >> example. >> >> Gabriele could you check it solves the issue for you? >> >> I confirm that the version compiled from master resolves my issue. >> >> Thank you! >> >> Gabriele > > Very cool. I'll keep this bug open a bit just so we remeber to > re-evaluate the backport. Okay backported the fix to emacs-29. I'm closing this. Thanks Andrea From unknown Tue Aug 19 21:03:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 24 Apr 2024 11:25:52 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator