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#48447: 27.2.50; Font-lock error in temporary bibtex-mode buffer Date: Wed, 13 Jul 2022 08:32:05 -0400 Message-ID: References: <87mtsv3osc.fsf@tcd.ie> <87o7xts1b7.fsf@gnus.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="11443"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: "Basil L. Contovounesios" , 48447@debbugs.gnu.org, Roland Winkler To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 13 14:33:18 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 1oBbYL-0002kL-QE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 14:33:18 +0200 Original-Received: from localhost ([::1]:48742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBbYK-0001KN-GV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 08:33:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBbY6-0001K9-9j for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 08:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50977) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBbY5-000302-PC for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 08:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBbY5-0001Xm-Lq for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 08:33:01 -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, 13 Jul 2022 12:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48447 X-GNU-PR-Package: emacs Original-Received: via spool by 48447-submit@debbugs.gnu.org id=B48447.16577155365876 (code B ref 48447); Wed, 13 Jul 2022 12:33:01 +0000 Original-Received: (at 48447) by debbugs.gnu.org; 13 Jul 2022 12:32:16 +0000 Original-Received: from localhost ([127.0.0.1]:44874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBbXM-0001Wi-Ly for submit@debbugs.gnu.org; Wed, 13 Jul 2022 08:32:16 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:24303) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBbXK-0001WT-66 for 48447@debbugs.gnu.org; Wed, 13 Jul 2022 08:32:15 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id AB5FC8064F; Wed, 13 Jul 2022 08:32:08 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 412C480019; Wed, 13 Jul 2022 08:32:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1657715527; bh=vSmZ0lZqTtBvJcc3FmSinioLrgLP9qT7J9l16nfR6l4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=crnX4nM0fMHc2fIZaR5xGD7mSSKhVfsIl8ihbvZ2hgcJqv2UV+21EYA7ANmHOHZLI T6tIA4df9zGhSj0peQ4oFZxZujNhBkG20aQ0bMkkPOEXvHi50zl52/XC6QnmuRWCd4 h/uHis4QYXlDRwoAYc7rtq2+07p4hhTTFTPLi//CVIjbWa2NrVjsqxl1okOnu4EFOQ i/u+E4VZHMY/bCXVeVUhRqr3UqGGtzUXSO2fLeKXifr3nIdOi/1rCME0e7TFkyBaSW UHoXH14INqjsTj5V+o3Tw97BCywNm7k8s6LtLzuLSMm80DMonz+grGt9z1/VjyHjXo FfKZkTTgEmErg== Original-Received: from pastel (unknown [45.72.196.165]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0D1171200A1; Wed, 13 Jul 2022 08:32:07 -0400 (EDT) In-Reply-To: <87o7xts1b7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 13 Jul 2022 13:24:12 +0200") 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:236882 Archived-At: Lars Ingebrigtsen [2022-07-13 13:24:12] wrote: > "Basil L. Contovounesios" writes: > >> This puts the following in *Messages*: >> >> Error during redisplay: (internal--syntax-propertize 25) signaled >> (error "Font-lock trying to use keywords before setting them up") > > I've now fixed this in Emacs 29. [...] > @@ -3659,7 +3659,11 @@ if that value is non-nil. > ?\s))))) > (if (and buffer-file-name enable-local-variables) > (add-hook 'hack-local-variables-hook fun nil t) > - (funcall fun)))) > + (funcall fun))) > + ;; We may be using the mode programmatically to extract data, and we > + ;; then need this to be set up first so that sexp-based movement > + ;; commands don't bug out. > + (font-lock-set-defaults)) Hmm... this looks like a workaround rather than a fix of the core problem because I can't see any use of "font-lock internals" in bibtex.el which would justify such a need. I suspect that the problem is linked to `syntax-propertize-via-font-lock`, so I think the fix should go there. Stefan