From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: 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?= Date: Thu, 29 Aug 2024 15:00:14 +0300 Message-ID: <86h6b3fsj5.fsf@gnu.org> References: <8734msb5zv.fsf@lidells.se> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35082"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rswgnu@gmail.com, 72811@debbugs.gnu.org To: Mats Lidell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 29 14:01:25 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sjdq8-0008wl-Qz for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Aug 2024 14:01:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjdpx-0006Nr-OP; Thu, 29 Aug 2024 08:01:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjdpr-0006MF-Kj for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 08:01:10 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sjdpr-0006AR-7K for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 08:01:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=s7i9ZzAEBCfXii7biLhhRcJ7cQMJvHVCyRZZi8SGuAM=; b=r8BEUqAjT0Sn6xX/E1/O9r5QMksmW0ZBHZ/eRRxVnTiVlx+ThP9bz21ysYY2Aly5NhEHczOWVEve4aeXVcAoSrVfLws1qvf7c/w6XAzVgnmz8mud8pNBifRWtulRremlOEVfnR03gU/DwRd0T+GvzbIiyxNiaUGfQbWP5KqJNeelsU56VRokqBwynODvGMTPLoQP73tnRfePaf/DI+cyLOu9TW3BkeYPFBrvmBrChNl2OIB/PYeLC74SE1Zy2mKrVvJCAn5m6NcGHPdK/n0tOlGkRRqIp1TPI3HAAC8r5RoYJicbTibl6kFQMjacAffphMTS6COAflZNXZUf/WAtzA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sjdqk-00054f-AU for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 08:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Aug 2024 12:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72811 X-GNU-PR-Package: emacs Original-Received: via spool by 72811-submit@debbugs.gnu.org id=B72811.172493290019469 (code B ref 72811); Thu, 29 Aug 2024 12:02:02 +0000 Original-Received: (at 72811) by debbugs.gnu.org; 29 Aug 2024 12:01:40 +0000 Original-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 Original-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 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 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==; In-Reply-To: <8734msb5zv.fsf@lidells.se> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290926 Archived-At: > 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.