From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 25 18:20:30 2024 Received: (at submit) by debbugs.gnu.org; 25 Aug 2024 22:20:30 +0000 Received: from localhost ([127.0.0.1]:43419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siLb3-0004g3-Ln for submit@debbugs.gnu.org; Sun, 25 Aug 2024 18:20:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:52560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siLb1-0004ft-Mn for submit@debbugs.gnu.org; Sun, 25 Aug 2024 18:20:28 -0400 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 1siLaB-0002Fc-2Y for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 18:19:36 -0400 Received: from smtp.egensajt.se ([194.68.80.251]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1siLa8-0004tj-FN for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2024 18:19:34 -0400 Received: from ethel (m90-129-216-238.cust.tele2.se [90.129.216.238]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mats.lidell@lidells.se) by smtp.egensajt.se (Postfix) with ESMTPSA id 43F8941E94 for ; Mon, 26 Aug 2024 00:19:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lidells.se; s=dkim; t=1724624358; bh=DI381FshqAMhO2MJRkEEpfroY8R/L5tUTdQWnqUI1gM=; h=From:To:Subject:Date:From; b=dk1nN6ISW2hDPVdGN3qQyoH3H9DS6eImk6f28+yAo31XpCPrqprsj8zjbzjeZKs7T AvAgGcOYuE6UKcsotrn7dS4+8pRRjhjqta7sxRCPvkBbjMUW3Z6DeVVpFDuhlo7xwV 5H3vf2+UkK2f+VY10refZCN3m1NqCG8LdRVi1A+Y= From: Mats Lidell To: bug-gnu-emacs@gnu.org Subject: 28.2; global-display-line-numbers-mode with debbugs package cause Lisp nesting exceeds =?utf-8?Q?=E2=80=98max-lisp-eval-depth=E2=80=99?= X-Debbugs-Cc: Robert Weiner Date: Mon, 26 Aug 2024 00:19:16 +0200 Message-ID: <8734msb5zv.fsf@lidells.se> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=194.68.80.251; envelope-from=mats.lidell@lidells.se; helo=smtp.egensajt.se 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 (--) Hi, With Emacs 27.2 and 28.2 using global-display-line-numbers-mode after fetch= ing a bug with debbugs leads to Lisp nesting exceeds =E2=80=98max-lisp-eval= -depth=E2=80=99. With Emacs 29.4 or Emacs 30 there is no error. The recipe used is this: (setq debug-on-error t) (require 'package) (package-refresh-contents) (package-install 'debbugs) (debbugs-gnu-bugs 100) (global-display-line-numbers-mode) Tested by putting the recipe in a file "dot-emacs" in the current folder an= d running with docker for the different Emacs versions: (Example for 28.2) > docker run -v $(pwd):/emacs -it silex/emacs:28.2 emacs -Q -l /emacs/d= ot-emacs The backtrace: Debugger entered--Lisp error: (error "Lisp nesting exceeds =E2=80=98max-lis= p-eval-depth=E2=80=99") window-normalize-window(# t) set-window-buffer-start-and-point(# # # #) switch-to-prev-buffer(# kill) replace-buffer-in-windows(#) kill-buffer("*Bugs*") debbugs-gnu-show-reports() debbugs-gnu-rescan() run-hooks(tabulated-list-revert-hook) tabulated-list-revert() run-hooks(display-line-numbers-mode-hook display-line-numbers-mode-on-hoo= k) display-line-numbers-mode() display-line-numbers--turn-on() global-display-line-numbers-mode-enable-in-buffers() run-hooks(after-change-major-mode-hook) run-mode-hooks(debbugs-gnu-mode-hook) debbugs-gnu-mode() debbugs-gnu-show-reports() debbugs-gnu-rescan() run-hooks(tabulated-list-revert-hook) tabulated-list-revert() run-hooks(display-line-numbers-mode-hook display-line-numbers-mode-on-hoo= k) display-line-numbers-mode() display-line-numbers--turn-on() global-display-line-numbers-mode-enable-in-buffers() run-hooks(after-change-major-mode-hook) run-mode-hooks(debbugs-gnu-mode-hook) debbugs-gnu-mode() debbugs-gnu-show-reports() [...repeating lines deleted...] debbugs-gnu-rescan() run-hooks(tabulated-list-revert-hook) tabulated-list-revert() run-hooks(display-line-numbers-mode-hook display-line-numbers-mode-on-hoo= k) display-line-numbers-mode() display-line-numbers--turn-on() global-display-line-numbers-mode() eval-buffer(# nil "/emacs/dot-emacs" nil t) ; Reading at= buffer position 155 load-with-code-conversion("/emacs/dot-emacs" "/emacs/dot-emacs" nil t) load("/emacs/dot-emacs" nil t) command-line-1(("-l" "/emacs/dot-emacs")) command-line() normal-top-level() Yours --=20 %% Mats From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 29 08:01:40 2024 Received: (at 72811) by debbugs.gnu.org; 29 Aug 2024 12:01:40 +0000 Received: from localhost ([127.0.0.1]:50657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjdqO-00053x-5r for submit@debbugs.gnu.org; Thu, 29 Aug 2024 08:01:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjdqL-00053f-C3 for 72811@debbugs.gnu.org; Thu, 29 Aug 2024 08:01:38 -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 1sjdpK-00067V-Fv; Thu, 29 Aug 2024 08:00:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=s7i9ZzAEBCfXii7biLhhRcJ7cQMJvHVCyRZZi8SGuAM=; b=QqR9ofpO3b/2fKFRkvoy 2Mg3EMONWhq8zKOQRiq+dhY/nAaky61KA0/8XNeTjuzTTxmUncH5aV2LnKPuw3MEvI7rPzMdk+t3Y zs0aTnPX/VV+qsLxEWIXZoRT9T45YDUSH92ShKDQaYrn9dGgTJXKsAmYOFw042vHaOnYY2Lymgvqv Zh6LJlHp2ZtcAs1V7L0Kzm42k84gzTHhmNr/c9tqX+WwKLkaBUEelSq4n2h1KfYelCFaEzdZLU6zV iUE6dsulSSlPHEWLUlag1qzor8p8TkdsLAZhEZCLuRXmfOeuDp/7JaM3qKCQJFA2COOrHsnqDmVTD lEuZ086A/hSkKg==; Date: Thu, 29 Aug 2024 15:00:14 +0300 Message-Id: <86h6b3fsj5.fsf@gnu.org> From: Eli Zaretskii To: Mats Lidell In-Reply-To: <8734msb5zv.fsf@lidells.se> (bug-gnu-emacs@gnu.org) Subject: Re: bug#72811: 28.2; global-display-line-numbers-mode with debbugs package cause Lisp nesting exceeds =?utf-8?Q?=E2=80=98max-lisp-eval-depth=E2=80=99?= References: <8734msb5zv.fsf@lidells.se> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72811 Cc: rswgnu@gmail.com, 72811@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 (---) > Cc: Robert Weiner > Date: Mon, 26 Aug 2024 00:19:16 +0200 > From: Mats Lidell via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > With Emacs 27.2 and 28.2 using global-display-line-numbers-mode after fetching a bug with debbugs leads to Lisp nesting exceeds ‘max-lisp-eval-depth’. With Emacs 29.4 or Emacs 30 there is no error. I guess we already fixed this, so we could close this bug. Still... > debbugs-gnu-rescan() > run-hooks(tabulated-list-revert-hook) > tabulated-list-revert() > run-hooks(display-line-numbers-mode-hook display-line-numbers-mode-on-hook) > display-line-numbers-mode() > display-line-numbers--turn-on() > global-display-line-numbers-mode() ...can you figure out which Lisp caused display-line-numbers-mode or display-line-numbers-mode-on-hook to run tabulated-list-revert? I couldn't find that anywhere in Emacs, and also not in debbugs. I do see that debbugs-gnu adds to tabulated-list-revert-hook the function debbugs-gnu-rescan, which then changes the major mode, which causes display-line-numbers-mode to be turned on again, so what happens after that is clear: infinite recursion. But I cannot understand why was tabulated-list-revert called in the first place. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 29 16:13:23 2024 Received: (at 72811) by debbugs.gnu.org; 29 Aug 2024 20:13:23 +0000 Received: from localhost ([127.0.0.1]:52181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjlWF-0003EO-2h for submit@debbugs.gnu.org; Thu, 29 Aug 2024 16:13:23 -0400 Received: from smtp.egensajt.se ([194.68.80.251]:56364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjlWC-0003E6-Il for 72811@debbugs.gnu.org; Thu, 29 Aug 2024 16:13:22 -0400 Received: from ethel (m90-129-216-238.cust.tele2.se [90.129.216.238]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mats.lidell@lidells.se) by smtp.egensajt.se (Postfix) with ESMTPSA id 8A514405DD; Thu, 29 Aug 2024 22:12:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lidells.se; s=dkim; t=1724962338; bh=fVkrq+DJrwfQxJu/Fha2UYyR9EkWkgrv02Otnk4dq+o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=VEq2lefHP3Ypd47YhXNqT3w/5eAoUKvyGe19lmu8ebnsY0v+DVPNsl3y1i5tMsFa2 Qqp5gzApBr0R3DJt3xbJN44GG0W1d+XQP0/7XO5JwUb5grnX3WGmLsq2iAfNjG44N/ wNo+SaWUX223kDFfpTb+5OitsqgHNJx2A9vjjiDA= From: Mats Lidell To: Eli Zaretskii Subject: Re: bug#72811: 28.2; global-display-line-numbers-mode with debbugs package cause Lisp nesting exceeds =?utf-8?Q?=E2=80=98max-lisp-eval-depth?= =?utf-8?Q?=E2=80=99?= In-Reply-To: <86h6b3fsj5.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 29 Aug 2024 15:00:14 +0300") References: <8734msb5zv.fsf@lidells.se> <86h6b3fsj5.fsf@gnu.org> Date: Thu, 29 Aug 2024 22:12:16 +0200 Message-ID: <87v7zj84wv.fsf@lidells.se> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72811 Cc: rswgnu@gmail.com, 72811@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 (-) > Eli Zaretskii writes: > I guess we already fixed this, so we could close this bug. Still... Yes. But I was curious since I could not find any commit in Emacs that looked related to fixing this. > ...can you figure out which Lisp caused display-line-numbers-mode or > display-line-numbers-mode-on-hook to run tabulated-list-revert? I > couldn't find that anywhere in Emacs, and also not in debbugs. I do > see that debbugs-gnu adds to tabulated-list-revert-hook the function > debbugs-gnu-rescan, which then changes the major mode, which causes > display-line-numbers-mode to be turned on again, so what happens after > that is clear: infinite recursion. But I cannot understand why was > tabulated-list-revert called in the first place. I could not either so I filed the bug report. ;-) And hoped someone could figure it out. \o/ %% Mats From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 14 03:31:35 2024 Received: (at 72811-done) by debbugs.gnu.org; 14 Sep 2024 07:31:35 +0000 Received: from localhost ([127.0.0.1]:44636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spNFm-0002Za-Nz for submit@debbugs.gnu.org; Sat, 14 Sep 2024 03:31:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spNFk-0002ZE-FN for 72811-done@debbugs.gnu.org; Sat, 14 Sep 2024 03:31:33 -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 1spNFR-0000Cm-Bn; Sat, 14 Sep 2024 03:31:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Y1ESkzqAA4KqYVgCS+E0n8y2SzMfITa+IhfPcWTov4Q=; b=AeI9HuLJO5esen/WXuUV 7c1UtnYCQp55aFvJTamRYexSHj30vLPJBAKFHXNWhyXr+rLSrLZR7yhGUxcoGvaAi0HPk64FBCDel vgBQfALDwELQ2i2trOY2etZvnhHzI2QX7qLPh8gluKboJUt19cm65/rVRi0m43TdDLlV1JQrX9Tg2 lbt6pRLKI8o2yVEK9KA7oT5FG0au4xzm0WMO+Nn0CjLe967QHy/cop9hsYfskEbh51L7BJ4tXE8/E WPvjpWHD3Kv53BNvxiPVL2wxjNPTuZ4YTyrxIZ4e6miJxZe51UsGxC5KQxh8UlvCdA5mnLNavYG1X RB2bpKQsJO7mYA==; Date: Sat, 14 Sep 2024 10:31:00 +0300 Message-Id: <86ldzuite3.fsf@gnu.org> From: Eli Zaretskii To: Mats Lidell In-Reply-To: <87v7zj84wv.fsf@lidells.se> (message from Mats Lidell on Thu, 29 Aug 2024 22:12:16 +0200) Subject: Re: bug#72811: 28.2; global-display-line-numbers-mode with debbugs package cause Lisp nesting exceeds =?utf-8?Q?=E2=80=98max-lisp-eval-depth?= =?utf-8?Q?=E2=80=99?= References: <8734msb5zv.fsf@lidells.se> <86h6b3fsj5.fsf@gnu.org> <87v7zj84wv.fsf@lidells.se> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72811-done Cc: rswgnu@gmail.com, 72811-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 (---) > From: Mats Lidell > Cc: 72811@debbugs.gnu.org, rswgnu@gmail.com > Date: Thu, 29 Aug 2024 22:12:16 +0200 > > > Eli Zaretskii writes: > > I guess we already fixed this, so we could close this bug. Still... > > Yes. But I was curious since I could not find any commit in Emacs that looked > related to fixing this. > > > ...can you figure out which Lisp caused display-line-numbers-mode or > > display-line-numbers-mode-on-hook to run tabulated-list-revert? I > > couldn't find that anywhere in Emacs, and also not in debbugs. I do > > see that debbugs-gnu adds to tabulated-list-revert-hook the function > > debbugs-gnu-rescan, which then changes the major mode, which causes > > display-line-numbers-mode to be turned on again, so what happens after > > that is clear: infinite recursion. But I cannot understand why was > > tabulated-list-revert called in the first place. > > I could not either so I filed the bug report. ;-) And hoped someone could > figure it out. \o/ No further comments, so I'm closing this bug. From unknown Fri Jun 20 07:28:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 12 Oct 2024 11:24:05 +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