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: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
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 14:37:21 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> 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.

Possibly.  The backtrace is

Debugger entered--Lisp error: (error "Font-lock trying to use keywords before setting th...")
  signal(error ("Font-lock trying to use keywords before setting th..."))
  error("Font-lock trying to use keywords before setting th...")
  font-lock-compile-keywords((("^[ \11]*\\(@\\)Comment\\>" 1 '(11))) t)
  font-lock-fontify-syntactic-keywords-region(1 86)
  #f(compiled-function (start end) #<bytecode 0xabaf7b9213c487b>)(1 86)
  syntax-propertize(86)
  internal--syntax-propertize(25)
  scan-sexps(24 1)
  forward-sexp(1)
  bibtex-parse-field-string()
  bibtex-parse-field-text()
  bibtex-parse-association(bibtex-parse-field-name bibtex-parse-field-text)


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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.