Subject: bug#65567: 30.0.50; font-lock-reference-face appears to be only half-gone

From: David Kastrup <[email-masked]>
Date: Sun, 27 Aug 2023 16:05:03 +0200

Whenever I read a gnus article with an inline source file (in this case
LilyPond code), I get the following crash:

Debugger entered--Lisp error: (void-variable font-lock-reference-face)
  eval(font-lock-reference-face t)
  #f(compiled-function (highlight) "Apply HIGHLIGHT following a match.\nHIGHLIGHT should be of the form MATCH-HIGHLIGHT, see `font-lock-keywords'." #<bytecode -0xf53eae0ecf5b08c>)((0 font-lock-reference-face t))
  font-lock-fontify-keywords-region(1 476 nil)
  font-lock-default-fontify-region(1 476 nil)
  font-lock-fontify-region(1 476)
  #f(compiled-function (beg end) #<bytecode -0x15f4e5c68345f707>)(1 476)
  font-lock-ensure()
  mm-display-inline-fontify((#<buffer  *mm*-971471> ("text/x-lilypond") nil nil ("inline" (filename . "js.ly")) nil nil nil))
  mm-inline-text((#<buffer  *mm*-971471> ("text/x-lilypond") nil nil ("inline" (filename . "js.ly")) nil nil nil))
  mm-display-inline((#<buffer  *mm*-971471> ("text/x-lilypond") nil nil ("inline" (filename . "js.ly")) nil nil nil))
  gnus-mime-display-single((#<buffer  *mm*-971471> ("text/x-lilypond") nil nil ("inline" (filename . "js.ly")) nil nil nil))
  gnus-mime-display-part((#<buffer  *mm*-971471> ("text/x-lilypond") nil nil ("inline" (filename . "js.ly")) nil nil nil))
  mapcar(gnus-mime-display-part ((#<buffer  *mm*-212059> ("text/plain") nil #f(compiled-function () #<bytecode 0xd6f85ae254c12cf>) ("inline") nil nil nil) (#<buffer  *mm*-971471> ("text/x-lilypond") nil nil ("inline" (filename . "js.ly")) nil nil nil) (#<buffer  *mm*-886068> ("text/plain") nil nil ("inline") nil nil nil)))
  gnus-mime-display-mixed(((#<buffer  *mm*-212059> ("text/plain") nil #f(compiled-function () #<bytecode 0xd6f85ae254c12cf>) ("inline") nil nil nil) (#<buffer  *mm*-971471> ("text/x-lilypond") nil nil ("inline" (filename . "js.ly")) nil nil nil) (#<buffer  *mm*-886068> ("text/plain") nil nil ("inline") nil nil nil)))
  gnus-mime-display-part((#("multipart/mixed" 0 15 (start nil from "[email-masked]" buffer #<buffer  *mm*> boundary "=-=-=")) (#<buffer  *mm*-212059> ("text/plain") nil #f(compiled-function () #<bytecode 0xd6f85ae254c12cf>) ("inline") nil nil nil) (#<buffer  *mm*-971471> ("text/x-lilypond") nil nil ("inline" (filename . "js.ly")) nil nil nil) (#<buffer  *mm*-886068> ("text/plain") nil nil ("inline") nil nil nil)))
  gnus-display-mime()
  gnus-article-prepare-display()
  gnus-article-prepare(157478 nil)
  gnus-summary-display-article(157478 nil)
  gnus-summary-select-article(nil nil pseudo)
  gnus-summary-scroll-up(1)
  funcall-interactively(gnus-summary-scroll-up 1)
  call-interactively(gnus-summary-scroll-up nil nil)
  command-execute(gnus-summary-scroll-up)

In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.38, cairo version 1.17.8) of 2023-08-27 built on lola
Repository revision: d303b0d2e9e4438917f0055c57da24ee17e78dbb
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101007
System Description: Ubuntu Mantic Minotaur (development branch)

Configured using:
 'configure --without-toolkit-scroll-bars'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF WEBP X11 XDBE XIM
XINPUT2 XPM GTK3 ZLIB

Important settings:
  value of $LC_MONETARY: de_DE.UTF-8
  value of $LC_NUMERIC: POSIX
  value of $LC_TIME: de_DE.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Debugger

Minor modes in effect:
  TeX-PDF-mode: t
  minibuffer-electric-default-mode: t
  desktop-save-mode: t
  server-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/dak/.emacs.d/elpa/transient-20230810.1716/transient hides /usr/local/share/emacs/30.0.50/lisp/transient
/home/dak/.emacs.d/elpa/use-package-20230426.2324/use-package-diminish hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-diminish
/home/dak/.emacs.d/elpa/use-package-20230426.2324/use-package-jump hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-jump
/home/dak/.emacs.d/elpa/use-package-20230426.2324/use-package-lint hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-lint
/home/dak/.emacs.d/elpa/use-package-20230426.2324/use-package-core hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-core
/home/dak/.emacs.d/elpa/use-package-20230426.2324/use-package-bind-key hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-bind-key
/home/dak/.emacs.d/elpa/bind-key-20230203.2004/bind-key hides /usr/local/share/emacs/30.0.50/lisp/use-package/bind-key
/home/dak/.emacs.d/elpa/use-package-20230426.2324/use-package-delight hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-delight
/home/dak/.emacs.d/elpa/use-package-20230426.2324/use-package hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package
/home/dak/.emacs.d/elpa/use-package-20230426.2324/use-package-ensure hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-ensure

Features:
(shadow sort emacsbug cl-print debug backtrace smiley gnus-cite
mm-archive mail-extr textsec uni-scripts idna-mapping ucs-normalize
uni-confusable textsec-check gnus-async gnus-bcklg gnus-ml disp-table
pop3 nndraft network-stream nndoc nndir nnmh nnml nnfolder nnnil
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art
mm-uu mml2015 mm-view mml-smime smime gnutls dig nntp gnus-cache
gnus-sum gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud nnimap
nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range message
sendmail yank-media dired-x dired dired-loaddefs rfc822 mml mml-sec epa
epg rfc6068 epg-config mailabbrev gmm-utils gnus-win mule-util eww
url-queue mm-url latexenc jka-compr tex-info texinfo texinfo-loaddefs
scheme preview reftex-dcr reftex-auc reftex reftex-loaddefs reftex-vars
tex-bar tex-buf toolbar-x font-latex latex edmacro kmacro latex-flymake
flymake-proc flymake thingatpt tex-ispell tex-style tex crm texmathp
tex-mode shell cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs autorevert filenotify lilypond-mode
derived compile vc-git diff-mode vc-dispatcher python project compat
treesit matrix-client matrix-client-room-list matrix-client-frame
frame-purpose matrix-client-images matrix-notifications notifications
dbus matrix-client-room esxml-query dash-functional ordered-buffer
matrix-client-rainbow rainbow-identifiers color ox-odt rng-loc rng-uri
rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns
nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table
ox-ascii ox-publish ox org-element org-persist xdg org-id org-refile org
ob ob-tangle ob-ref ob-lob ob-table org-macro org-src ob-comint
org-pcomplete org-list org-footnote org-faces org-entities noutline
outline ob-emacs-lisp org-table org-keys org-loaddefs find-func warnings
icons avl-tree generator ol oc ob-exp ob-core org-cycle org-fold
org-fold-core org-compat ob-eval org-version org-macs format-spec shr
pixel-fill kinsoku url-file svg xml dom pcomplete comint ansi-osc
ansi-color ring matrix-client-faces matrix-api-r0.3.0 matrix-helpers
matrix-macros url-http url-auth url-gw nsm puny request mailheader ht a
dns tracking shorten easy-mmode ov f f-shortdoc dash s anaphora cal-menu
calendar cal-loaddefs parse-time iso8601 advice minibuf-eldef gnus
nnheader gnus-util text-property-search time-date mail-utils range
wid-edit desktop frameset cus-load quelpa-use-package cl-extra
use-package-core quelpa mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 mm-util ietf-drums mail-prsvr lisp-mnt help-fns
radix-tree help-mode preview-latex auto-loads tex-site server
edit-server-autoloads gnuplot-autoloads magit-autoloads
git-commit-autoloads magit-section-autoloads pcase rx
frame-purpose-autoloads ht-autoloads esxml-autoloads kv-autoloads
a-autoloads f-autoloads dash-functional-autoloads dash-autoloads
mmm-mode-autoloads ov-autoloads quelpa-autoloads request-autoloads
s-autoloads spice-mode-autoloads tracking-autoloads transient-autoloads
use-package-autoloads bind-key-autoloads with-editor-autoloads info
compat-autoloads package browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie generate-lisp-file url-domsuf
url-util mailcap url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp
byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo gtk x-toolkit xinput2 x multi-tty move-toolbar
make-network-process emacs)

Memory information:
((conses 16 623201 84224) (symbols 48 42179 35)
 (strings 32 160023 14445) (string-bytes 1 4806786) (vectors 16 91478)
 (vector-slots 8 1182010 61395) (floats 8 500 233)
 (intervals 56 5304 52) (buffers 984 89))

-- 
David Kastrup