From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69431: 30.0.50; Strange fontificaion behavior Date: Wed, 27 Mar 2024 10:27:00 -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> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9861"; 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: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 27 15:28: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 1rpUGP-0002Hk-6l for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Mar 2024 15:28:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpUG4-0008Ha-Q9; Wed, 27 Mar 2024 10:28:04 -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 1rpUG3-0008HH-1K for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 10:28:03 -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 1rpUG2-0002Zi-B5 for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 10:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpUG2-00088c-Ee for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2024 10:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Mar 2024 14:28: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.171154963831194 (code B ref 69431); Wed, 27 Mar 2024 14:28:02 +0000 Original-Received: (at 69431) by debbugs.gnu.org; 27 Mar 2024 14:27:18 +0000 Original-Received: from localhost ([127.0.0.1]:38038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpUFJ-000873-Ji for submit@debbugs.gnu.org; Wed, 27 Mar 2024 10:27:17 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:27816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpUFG-00086p-CJ for 69431@debbugs.gnu.org; Wed, 27 Mar 2024 10:27:16 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 61F0D1000FC; Wed, 27 Mar 2024 10:27:08 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1711549627; bh=TUJKyQkYNI9EjImRgYZQT/nx7PkacKEHDafOwgUMNhk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=B4ykUf+niRTWBQoS1LrK7bxDFPxplaHsms1DHLvqNDKlzDRgdAsoZQ9VvRUWzKhGF EDxyEeNvYMJwGElH3LrKfJG2TNOfjKcE2RqdVdDJ/zbxvYzABLhgjMSdkVl7l/khu3 Ct7RDqb+gR1F2q67OEpBloMVcYyEky4qR83uBRVNqe+7ke3uD3iMyuLhjGzCP9Ojbg /5P+PQplV2Pp0/ESjjkPCedn0hcLV4si+k3XTdLuNmJs758VIoulAZmR94mtNgGUuX cdcMBPewfARLM+km+ek+jcA4VzCaQyGmAoSJMULV4kjnd3YZw3sYfySo4OelpOwLUm b4bnTkHJUg1lg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 65A2B10004A; Wed, 27 Mar 2024 10:27:07 -0400 (EDT) Original-Received: from pastel (unknown [45.72.199.112]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 301B91203BC; Wed, 27 Mar 2024 10:27:07 -0400 (EDT) In-Reply-To: (Andrea Corallo's message of "Wed, 27 Mar 2024 04:31:10 -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:282141 Archived-At: >>> 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`). Stefan