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#72329: Avoid recursion in gnus-message-citation-mode Date: Sat, 14 Sep 2024 10:33:07 +0300 Message-ID: <86h6aiitak.fsf@gnu.org> References: <877cd62thb.fsf@gmail.com> <86y15fv0xx.fsf@gnu.org> <86y14v4nfo.fsf@gnu.org> <86v7zhcegl.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23139"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72329@debbugs.gnu.org, thuna.cing@gmail.com To: eric@ericabrahamsen.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 14 09:34:07 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 1spNIF-0005tM-Bx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Sep 2024 09:34:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spNI2-0003aG-8R; Sat, 14 Sep 2024 03:33:54 -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 1spNHz-0003a6-U1 for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 03:33:51 -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 1spNHz-0000Vu-Kq for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 03:33:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=l+0kwYd8piDEdV9sc+7BbUg8sRvHPubUCOiKfb7AkNY=; b=GZEak2lRP9Hfhh09vfaXHp2O22VNcw7lMwQtmhJ3BT8Tc+VRaQ/uDJRwxT0qEZZzramfk/Ca1CbyzQFqDMErRWMpWG1niLJlsrh4YTn238Vci4HeWXPjcxd10R+OESBvWBnQjcHJ79tEtjhVBdn0kvcnOaEKm86vp0PbWdei4upnByBvSAJOwxIw1kPwjlv4KG2qi97TwZkeUArjxMDFb2+JwE+e9YNHltlfcBISnmgFP7hFxTOVMXr2474Jq/afadlzXKeI4/XcHmz+S6gvvABtIh/l1vBQQ80EPNpnkVjwlbhx9ad26lEfQKij2bigdsZa07xFIjmXMgI414eq5g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spNI9-0002ec-Pa for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 03:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Sep 2024 07:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72329 X-GNU-PR-Package: emacs Original-Received: via spool by 72329-submit@debbugs.gnu.org id=B72329.172629920910155 (code B ref 72329); Sat, 14 Sep 2024 07:34:01 +0000 Original-Received: (at 72329) by debbugs.gnu.org; 14 Sep 2024 07:33:29 +0000 Original-Received: from localhost ([127.0.0.1]:44648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spNHc-0002dh-KI for submit@debbugs.gnu.org; Sat, 14 Sep 2024 03:33:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spNHa-0002dR-7N for 72329@debbugs.gnu.org; Sat, 14 Sep 2024 03:33:26 -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 1spNHK-0000Ky-CW; Sat, 14 Sep 2024 03:33:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=l+0kwYd8piDEdV9sc+7BbUg8sRvHPubUCOiKfb7AkNY=; b=M2FmqFSi5Qjc qZuFuF6C9SRa6nlfEfQIwjySuO5Gl8zMwkycNvqJqAkdfJInjpYpcZ+uXTxpW9WEootNrJG8YvNKZ 2IZXfoIhYL9ZQz1dfpClocS7nUs+LOPhUOy5xr+8tN8evKouEa9owalGIb/djNTsq8kKi51EgyWk/ 2UrTfW07CYRvxuYYR4+8DwA7FS9bpsts+Jdp3MRn9nKeT7xLeYFZ/Oc97AiLhHyuMoSxXV7oSikBp QhUMyvZl83fWEK+6F/HJS871bmlMYYqfQC8Dw4GYJmVAKM9okDcVX5jSjoXfHqsil+nDWrCwu16UE jrYa3ZrNhJ1SOuHfdNjgxg==; In-Reply-To: <86v7zhcegl.fsf@gnu.org> (message from Eli Zaretskii on Sat, 31 Aug 2024 10:56:58 +0300) 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:291698 Archived-At: Ping! Ping! Ping! Eric, are you there? > Cc: thuna.cing@gmail.com, 72329@debbugs.gnu.org > Date: Sat, 31 Aug 2024 10:56:58 +0300 > From: Eli Zaretskii > > Ping! Ping! Eric, any comments? > > > Cc: 72329@debbugs.gnu.org, thuna.cing@gmail.com > > Date: Sat, 17 Aug 2024 10:29:31 +0300 > > From: Eli Zaretskii > > > > Ping! Eric, any comments? > > > > > Cc: 72329@debbugs.gnu.org > > > Date: Fri, 02 Aug 2024 10:27:54 +0300 > > > From: Eli Zaretskii > > > > > > > From: Thuna > > > > Date: Sun, 28 Jul 2024 03:30:40 +0200 > > > > > > > > In `gnus-message-citation-mode' the > > > > > > > > (if (not font-lock-mode) > > > > (gnus-message-citation-mode (font-lock-mode 1)) > > > > ...) > > > > > > > > can lead to excessive nesting if font-lock-mode fails to be set (quick > > > > enough or altogether). Changing this with > > > > > > > > (while (not font-lock-mode) (font-lock-mode 1)) > > > > ... > > > > > > > > should be better, assuming it is necessary for `font-lock-mode' to be > > > > called repeatedly, otherwise > > > > > > > > (font-lock-mode 1) > > > > (while (not font-lock-mode)) > > > > ... > > > > > > > > might also work, or simply > > > > > > > > (font-lock-mode 1) > > > > ... > > > > > > > > if it is not necessary to wait. > > > > > > > > One possible problem with these arrangements is that it may be desirable > > > > to error in case there is an issue which prevents font-lock-mode from > > > > being set perpetually, in which case something like > > > > > > > > (font-lock-mode 1) > > > > (with-timeout ( > > > > (error "Failed to enable `font-lock-mode'.")) > > > > (while (not font-lock-mode))) > > > > ... > > > > > > > > might be preferable. > > > > > > Thanks. > > > > > > Eric, any comments or suggestions? > > > > > > > > > > > > > > > > > > > > > > > >