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#58578: 29.0.50; Font lock randomly breaks in some buffers and gets worse over time Date: Mon, 17 Oct 2022 09:42:57 +0300 Message-ID: <831qr73q8e.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17439"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58578@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 17 08:44:54 2022 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 1okJrp-0004KM-VU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 08:44:53 +0200 Original-Received: from localhost ([::1]:59126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okJro-0000Dj-Qu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 02:44:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okJr0-00009L-M7 for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 02:44:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okJr0-00035E-EE for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 02:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okJr0-0007Nk-8y for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 02:44: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: Mon, 17 Oct 2022 06:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58578 X-GNU-PR-Package: emacs Original-Received: via spool by 58578-submit@debbugs.gnu.org id=B58578.166598899928300 (code B ref 58578); Mon, 17 Oct 2022 06:44:02 +0000 Original-Received: (at 58578) by debbugs.gnu.org; 17 Oct 2022 06:43:19 +0000 Original-Received: from localhost ([127.0.0.1]:46961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okJqI-0007MO-TR for submit@debbugs.gnu.org; Mon, 17 Oct 2022 02:43:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okJqG-0007M8-6e for 58578@debbugs.gnu.org; Mon, 17 Oct 2022 02:43:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okJq9-00032G-Iw; Mon, 17 Oct 2022 02:43: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=Oz+kWqxGXv8fbm5Z2gO2vCVt9Bi0ejOwj6ZMEdDKXPE=; b=OVM09cLGXF/R PBbAfFRgL/xHquhMahIYcMBtO2ZlDmtew66xJwuPPBIS9rzW8IQ3AdchWFQRtuD5D6CA1uV0HH784 iwBysQhtmQ05TLO8p/vlcBvDCdeF2ahxYGJBmFMkJOdb4qCImKodomxVKvVr7w6HJk53sbwkYrYsw Fr+YEAtP/lW65CX236ySGCp6olQV7HDvDDbkA2OoeSZOmO/8X5LBpjFS5YxqRRa5tjbphOQ+Gtip2 WK2O8BNY5ds8e8kCmRux3vYtlqXCLE6aInnY7r6A2Tw+08/l0ndcVmNR5DYlWz4+ZLRhkwGxUFf3V w/78Mmv3cG+AgLgiBlKwdg==; Original-Received: from [87.69.77.57] (port=3901 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okJq8-0004Ld-LM; Mon, 17 Oct 2022 02:43:09 -0400 In-Reply-To: (message from Stefan Kangas on Mon, 17 Oct 2022 04:40:50 +0000) 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" Xref: news.gmane.io gmane.emacs.bugs:245689 Archived-At: > From: Stefan Kangas > Date: Mon, 17 Oct 2022 04:40:50 +0000 > > I'm seeing broken font lock in long running sessions, seemingly at > random. After it goes on for a while, font lock breaks down completely > in some buffers, and it seemingly gets worse over time. In some cases, > the only remedy has been to restart Emacs. > > This has been going on for a couple of weeks at least, and I thought I > was doing something wrong, so I haven't reported it. I also haven't > seriously tried to reproduce it in "emacs -Q", so I've only seen using > my own init file. (I haven't made any changes in that configuration > recently that would obviously relate to font-locking.) > > I've failed at my attempts to understand it, so I hope that someone can > help me with ideas on how to debug this. What makes this a bit > discouraging to debug is that it usually only shows up after more than a > day of use (sometimes several days, AFAIR), and it's unbearable to work > in "emacs -Q" for that long. I also have no idea where to even begin > looking. > > I have seen it in more than one major mode, both built-in and > third-party modes (from the top of my head, I've seen it in `c-mode' and > `org-mode' too). Some questions/ideas for you: What happens if you toggle font-lock-mode off and on again in the affected buffers? For CC Mode and Org Mode, what happens if you kill the buffer and revisit the file? Is it possible that long-line-optimizations-p returns non-nil in the affected buffers? Do you see any relevant messages in *Messages* when this happens? Did you make _any_ changes in your init files lately? If so, I suggest to undo them one by one to see if any of them are responsible.