GNU bug report logs - #48447
27.2.50; Font-lock error in temporary bibtex-mode buffer

Previous Next

Package: emacs;

Reported by: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Date: Sat, 15 May 2021 17:12:01 UTC

Severity: minor

Found in version 27.2.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 48447 <at> debbugs.gnu.org, Roland Winkler <winkler <at> gnu.org>
Subject: bug#48447: 27.2.50; Font-lock error in temporary bibtex-mode buffer
Date: Wed, 13 Jul 2022 08:32:05 -0400
Lars Ingebrigtsen [2022-07-13 13:24:12] wrote:

> "Basil L. Contovounesios" <contovob <at> tcd.ie> 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





This bug report was last modified 2 years and 309 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.