unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>,
	48447@debbugs.gnu.org, Roland Winkler <winkler@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	[thread overview]
Message-ID: <87mtddp4se.fsf@gnus.org> (raw)
In-Reply-To: <jwvcze9yz55.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 13 Jul 2022 08:32:05 -0400")

Stefan Monnier <monnier@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





  reply	other threads:[~2022-07-13 12:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-15 17:11 bug#48447: 27.2.50; Font-lock error in temporary bibtex-mode buffer Basil L. Contovounesios
2021-05-18 15:56 ` Roland Winkler
2022-07-13 11:24 ` Lars Ingebrigtsen
2022-07-13 12:32   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-13 12:37     ` Lars Ingebrigtsen [this message]
2022-07-13 19:32     ` Roland Winkler
2022-07-13 20:34       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtddp4se.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=48447@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    --cc=monnier@iro.umontreal.ca \
    --cc=winkler@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).