From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#69431: 30.0.50; Strange fontificaion behavior Date: Sun, 31 Mar 2024 15:49:08 -0400 Message-ID: References: <871q8x6e06.fsf@mail.parknet.co.jp> <86msrlu87i.fsf@gnu.org> <87v869oklj.fsf@localhost> <86il29u4hy.fsf@gnu.org> <87sf1dogi8.fsf@localhost> <87h6hi8d87.fsf@mail.parknet.co.jp> <86il1g2dfd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22410"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: =?UTF-8?Q?Bj=C3=B6rn?= Bidar , Eli Zaretskii , yantar92@posteo.net, 69431@debbugs.gnu.org, hirofumi@mail.parknet.co.jp To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 31 21:50:16 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 1rr1C3-0005ZC-4h for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Mar 2024 21:50:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rr1Bp-0005HZ-Pz; Sun, 31 Mar 2024 15:50:01 -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 1rr1Bn-0005Gj-Rn for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 15:49:59 -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 1rr1Bn-0004ei-K5 for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 15:49:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rr1Bq-0005vO-8l for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 15:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Mar 2024 19:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69431 X-GNU-PR-Package: emacs Original-Received: via spool by 69431-submit@debbugs.gnu.org id=B69431.171191456222660 (code B ref 69431); Sun, 31 Mar 2024 19:50:02 +0000 Original-Received: (at 69431) by debbugs.gnu.org; 31 Mar 2024 19:49:22 +0000 Original-Received: from localhost ([127.0.0.1]:48500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rr1BC-0005tP-5U for submit@debbugs.gnu.org; Sun, 31 Mar 2024 15:49:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rr1B9-0005t1-34 for 69431@debbugs.gnu.org; Sun, 31 Mar 2024 15:49:20 -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 1rr1Ay-0004aA-RR; Sun, 31 Mar 2024 15:49:08 -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=ilCeRbjRbVsUgTuDwlGKj/ZHyiMAYGRLhkpbpGE/Uvo=; b=Gg51FMmAS5G+LWs+ODOv lAa93PndPMqNtk/1Pk6ZuQFTxwb9BKPysz87Gt4+krFD61dJWO9ORjeKJ/qUBS1J9ULARkrAXD9mZ ZNXrh9QLQ9oiahcwpjMTerxnaBNS653FBXXp7ET0zU6l4sx6clUgInBC0ZF6C031azaxB6DlZhV/C QYV0+tHEpWuDPi/d0B/6qfMlsBCx2Vc22RACU9Zg4EEYxwxrGGpRAs2VQe+FVPOfgSY4wgrfWfvhf ndahn5YGD9Q0Ak8uF5xGwlmJyLArQ9Icpkn22ajGEY8QbWjvPfVSij8godvxRXQqugJkrTyGqluhM lON2IBrpLGivbA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rr1Ay-0001k9-Iz; Sun, 31 Mar 2024 15:49:08 -0400 In-Reply-To: (Stefan Monnier's message of "Wed, 27 Mar 2024 10:27:00 -0400") 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:282446 Archived-At: Stefan Monnier writes: >>>> I'm trying to progress on this but I've difficult time at getting a grip >>>> on this bug. One of the reason why is that on my reproducer Emacs >>>> doesn't crash nor complain, the other reason is that I'm not really into >>>> our fontification. I'll keep on looking into it but I'd appretiate any >>>> hint like: what should be happening to fontify the buffer that is not >>>> actually happening here? With such info I could try investingating the >>>> issue from there comparing with the working case. >>> >>> Hmm... here, after >>> >>> rm -rf ~/.emacs.d/eln-cache >>> src/emacs -Q --eval '(setq debug-on-error t)' a.org >>> >>> I get a buffer with no fontification, that claims to be in Org mode but >>> whose `font-lock-keywords` is just (t nil), which explains the lack >>> of fontification. >> >> Where `font-lock-keywords` are supposed to be set? > > `font-lock-keywords` is normally set from `font-lock-defaults` (which is > set by the major-mode) by `font-lock-set-defaults` when `font-lock-mode` > is enabled (which usually happens soon after enabling the major mode, > via `after-change-major-mode-hook`). Sorry didn't had much time to progress on this. I see `font-lock-mode` and `font-lock-set-defaults` are called when opening an org file here on my reproducer. Also I see `font-lock-set-defaults` is actually set! So I'm wondering why afterwards the value changes for my test.org. Will look into it more hopefully tomorrow. Andrea