unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
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 08:32:05 -0400	[thread overview]
Message-ID: <jwvcze9yz55.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87o7xts1b7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 13 Jul 2022 13:24:12 +0200")

Lars Ingebrigtsen [2022-07-13 13:24:12] wrote:

> "Basil L. Contovounesios" <contovob@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






  reply	other threads:[~2022-07-13 12:32 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 [this message]
2022-07-13 12:37     ` Lars Ingebrigtsen
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=jwvcze9yz55.fsf-monnier+emacs@gnu.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=48447@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    --cc=larsi@gnus.org \
    --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).